13
packages/variables/types.ts
Normal file
13
packages/variables/types.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export type Variable = {
|
||||
id: string
|
||||
name: string
|
||||
value?: string | (string | null)[] | null | undefined
|
||||
}
|
||||
|
||||
export type VariableWithValue = Pick<Variable, 'id' | 'name'> & {
|
||||
value: string | (string | null)[]
|
||||
}
|
||||
|
||||
export type VariableWithUnknowValue = Pick<Variable, 'id' | 'name'> & {
|
||||
value?: unknown
|
||||
}
|
||||
Reference in New Issue
Block a user