feat(projects): 1.0 beta

This commit is contained in:
Soybean
2023-11-17 08:45:00 +08:00
parent 1ea4817f6a
commit e918a2c0f5
499 changed files with 15918 additions and 24708 deletions

27
src/typings/common.d.ts vendored Normal file
View File

@ -0,0 +1,27 @@
/**
* the common type namespace
*/
declare namespace Common {
/**
* 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> = { value: K; label: string };
type YesOrNo = 'Y' | 'N';
}