mobx-keystone-mindreframer
Version:
A MobX powered state management solution based on data trees with first class support for Typescript, snapshots, patches and much more
23 lines (22 loc) • 701 B
TypeScript
import type { IdentityType } from "./schemas";
import { TypeInfo } from "./TypeChecker";
/**
* A type that represents a given value that won't be type checked.
* This is basically a way to bail out of the runtime type checking system.
*
* Example:
* ```ts
* const uncheckedSomeModel = types.unchecked<SomeModel>()
* const anyType = types.unchecked<any>()
* const customUncheckedType = types.unchecked<(A & B) | C>()
* ```
*
* @typeparam T Type of the value, or unkown if not given.
* @returns
*/
export declare function typesUnchecked<T = never>(): IdentityType<T>;
/**
* `types.unchecked` type info.
*/
export declare class UncheckedTypeInfo extends TypeInfo {
}