@teleporthq/teleport-types
Advanced tools
Comparing version 0.37.3 to 0.37.6
@@ -25,2 +25,3 @@ import { Modify } from './helper'; | ||
referenceType: 'prop'; | ||
refPath?: string[]; | ||
id: string; | ||
@@ -33,2 +34,3 @@ }; | ||
referenceType: 'state'; | ||
refPath?: string[]; | ||
id: string; | ||
@@ -215,5 +217,6 @@ }; | ||
export type UIDLMetaTag = Record<string, string | UIDLStaticValue | UIDLDynamicReference>; | ||
export type PropDefaultValueTypes = string | number | boolean | unknown[] | object | (() => void) | UIDLElementNode; | ||
export interface UIDLPropDefinition { | ||
type: string; | ||
defaultValue?: string | number | boolean | unknown[] | object | (() => void) | UIDLElementNode; | ||
defaultValue?: PropDefaultValueTypes; | ||
isRequired?: boolean; | ||
@@ -277,3 +280,3 @@ id?: string; | ||
type: 'static'; | ||
content: string | number | boolean | unknown[]; | ||
content: string | number | boolean | Record<string, unknown> | unknown[]; | ||
} | ||
@@ -587,2 +590,3 @@ export interface UIDLRawValue { | ||
referenceType: 'prop' | 'comp'; | ||
refPath?: string[]; | ||
id: string; | ||
@@ -589,0 +593,0 @@ }; |
@@ -25,2 +25,3 @@ import { Modify } from './helper'; | ||
referenceType: 'prop'; | ||
refPath?: string[]; | ||
id: string; | ||
@@ -33,2 +34,3 @@ }; | ||
referenceType: 'state'; | ||
refPath?: string[]; | ||
id: string; | ||
@@ -215,5 +217,6 @@ }; | ||
export type UIDLMetaTag = Record<string, string | UIDLStaticValue | UIDLDynamicReference>; | ||
export type PropDefaultValueTypes = string | number | boolean | unknown[] | object | (() => void) | UIDLElementNode; | ||
export interface UIDLPropDefinition { | ||
type: string; | ||
defaultValue?: string | number | boolean | unknown[] | object | (() => void) | UIDLElementNode; | ||
defaultValue?: PropDefaultValueTypes; | ||
isRequired?: boolean; | ||
@@ -277,3 +280,3 @@ id?: string; | ||
type: 'static'; | ||
content: string | number | boolean | unknown[]; | ||
content: string | number | boolean | Record<string, unknown> | unknown[]; | ||
} | ||
@@ -587,2 +590,3 @@ export interface UIDLRawValue { | ||
referenceType: 'prop' | 'comp'; | ||
refPath?: string[]; | ||
id: string; | ||
@@ -589,0 +593,0 @@ }; |
{ | ||
"name": "@teleporthq/teleport-types", | ||
"version": "0.37.3", | ||
"version": "0.37.6", | ||
"description": "The collection of reusable types across the entire teleport ecosystem", | ||
@@ -29,3 +29,3 @@ "author": "teleportHQ", | ||
}, | ||
"gitHead": "c4a91ebb3cddb547ff0a635ffe2036a609560434" | ||
"gitHead": "463fe45a6f7a5300c06cf8f544c7b522a9ad99fe" | ||
} |
@@ -33,2 +33,3 @@ import { Modify } from './helper' | ||
referenceType: 'prop' | ||
refPath?: string[] | ||
id: string | ||
@@ -42,2 +43,3 @@ } | ||
referenceType: 'state' | ||
refPath?: string[] | ||
id: string | ||
@@ -269,5 +271,14 @@ } | ||
export type PropDefaultValueTypes = | ||
| string | ||
| number | ||
| boolean | ||
| unknown[] | ||
| object | ||
| (() => void) | ||
| UIDLElementNode | ||
export interface UIDLPropDefinition { | ||
type: string | ||
defaultValue?: string | number | boolean | unknown[] | object | (() => void) | UIDLElementNode | ||
defaultValue?: PropDefaultValueTypes | ||
isRequired?: boolean | ||
@@ -355,3 +366,3 @@ id?: string | ||
type: 'static' | ||
content: string | number | boolean | unknown[] // unknown[] for data sources | ||
content: string | number | boolean | Record<string, unknown> | unknown[] // unknown[] for data sources | ||
} | ||
@@ -769,2 +780,3 @@ | ||
referenceType: 'prop' | 'comp' | ||
refPath?: string[] | ||
id: string | ||
@@ -771,0 +783,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
313730
5315