mobx-state-tree
Version:
Opinionated, transactional, MobX powered state container
13 lines (12 loc) • 373 B
TypeScript
import { IType } from "../type";
/**
* Maybe will make a type nullable, and also null by default.
*
* @export
* @alias types.maybe
* @template S
* @template T
* @param {IType<S, T>} type The type to make nullable
* @returns {(IType<S | null | undefined, T | null>)}
*/
export declare function maybe<S, T>(type: IType<S, T>): IType<S | null | undefined, T | null>;