noodl-types
Advanced tools
Comparing version 1.0.58 to 1.0.59
@@ -5,3 +5,3 @@ import { ActionObject } from './actionTypes'; | ||
import { ActionChain, EmitObject, GotoObject, Path, TextBoardObject } from './uncategorizedTypes'; | ||
export declare type AnyComponentObject = ButtonComponentObject | DividerComponentObject | FooterComponentObject | HeaderComponentObject | ImageComponentObject | LabelComponentObject | ListComponentObject | ListItemComponentObject | MapComponentObject | PageComponentObject | PluginComponentObject | PluginHeadComponentObject | PluginBodyTailComponentObject | PopUpComponentObject | RegisterComponentObject | SelectComponentObject | ScrollViewComponentObject | TextFieldComponentObject | TextViewComponentObject | VideoComponentObject | ViewComponentObject; | ||
export declare type AnyComponentObject = ButtonComponentObject | DividerComponentObject | EcosDocComponentObject | FooterComponentObject | HeaderComponentObject | ImageComponentObject | LabelComponentObject | ListComponentObject | ListItemComponentObject | MapComponentObject | PageComponentObject | PluginComponentObject | PluginHeadComponentObject | PluginBodyTailComponentObject | PopUpComponentObject | RegisterComponentObject | SelectComponentObject | ScrollViewComponentObject | TextFieldComponentObject | TextViewComponentObject | VideoComponentObject | ViewComponentObject; | ||
export declare type UncommonComponentObjectProps = { | ||
@@ -15,3 +15,5 @@ [key in EventType]: ActionChain; | ||
dataKey?: string; | ||
ecosObj?: any; | ||
emit?: EmitObject; | ||
global?: true; | ||
image?: string; | ||
@@ -57,2 +59,6 @@ isEditable?: boolean; | ||
} | ||
export interface EcosDocComponentObject extends ComponentObject, Pick<UncommonComponentObjectProps, 'ecosObj'> { | ||
type: 'ecosDoc'; | ||
[key: string]: any; | ||
} | ||
export interface FooterComponentObject extends ComponentObject { | ||
@@ -59,0 +65,0 @@ type: 'footer'; |
@@ -122,2 +122,3 @@ import { StyleObject } from './styleTypes'; | ||
divider(value: unknown): value is T.DividerComponentObject; | ||
ecosDoc(value: unknown): value is T.EcosDocComponentObject; | ||
footer(value: unknown): value is T.FooterComponentObject; | ||
@@ -124,0 +125,0 @@ header(value: unknown): value is T.HeaderComponentObject; |
@@ -101,2 +101,5 @@ "use strict"; | ||
}, | ||
ecosDoc: function (value) { | ||
return u.isObj(value) && value.type === 'ecosDoc'; | ||
}, | ||
footer: function (value) { | ||
@@ -103,0 +106,0 @@ return u.isObj(value) && value.type === 'footer'; |
{ | ||
"name": "noodl-types", | ||
"version": "1.0.58", | ||
"version": "1.0.59", | ||
"description": "NOODL TypeScript Definitions", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70921
1278