UNPKG

@_lan/web-libs

Version:

<div align="center"> <img src="./public/favicon.svg" width="160" /> <h1>SoybeanAdmin AntDesign</h1> <span>中文 | <a href="./README.en_US.md">English</a></span> </div>

26 lines (22 loc) 582 B
/** The common type namespace */ declare namespace CommonType { /** The strategic pattern */ interface StrategicPattern { /** The condition */ condition: boolean; /** If the condition is true, then call the action function */ callback: () => void; } /** * The option type * * @property value: The option value * @property label: The option label */ type Option<K = string> = { value: K; label: string }; type YesOrNo = 'Y' | 'N'; /** add null to all properties */ type RecordNullable<T> = { [K in keyof T]?: T[K] | null; }; }