chore: init read-star monorepo

This commit is contained in:
2026-01-16 13:06:44 +08:00
commit 1e510efe8e
508 changed files with 44803 additions and 0 deletions

25
apps/admin/src/typings/common.d.ts vendored Normal file
View File

@ -0,0 +1,25 @@
/** 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
*/
interface Option<K = string, M = string> { value: K, label: M }
type YesOrNo = 'Y' | 'N'
/** add null to all properties */
type RecordNullable<T> = {
[K in keyof T]?: T[K] | null;
}
}