mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 1.0 beta
This commit is contained in:
27
src/typings/common.d.ts
vendored
Normal file
27
src/typings/common.d.ts
vendored
Normal 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';
|
||||
}
|
Reference in New Issue
Block a user