mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 05:50:18 +08:00
28 lines
495 B
TypeScript
28 lines
495 B
TypeScript
/**
|
|
* 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';
|
|
}
|