noodl-types
Advanced tools
Comparing version 1.0.61 to 1.0.62
@@ -35,2 +35,14 @@ import { EmitObject } from './uncategorizedTypes'; | ||
} | ||
export interface OpenCameraActionObject extends ActionObject, Pick<UncommonActionObjectProps, 'dataKey' | 'dataObject'> { | ||
actionType: 'openCamera'; | ||
[key: string]: any; | ||
} | ||
export interface OpenPhotoLibraryActionObject extends ActionObject, Pick<UncommonActionObjectProps, 'dataKey' | 'dataObject'> { | ||
actionType: 'openPhotoLibrary'; | ||
[key: string]: any; | ||
} | ||
export interface OpenDocumentManagerActionObject extends ActionObject, Pick<UncommonActionObjectProps, 'dataKey' | 'dataObject'> { | ||
actionType: 'openDocumentManager'; | ||
[key: string]: any; | ||
} | ||
export interface PageJumpActionObject extends ActionObject, Pick<UncommonActionObjectProps, 'destination'> { | ||
@@ -37,0 +49,0 @@ actionType: 'pageJump'; |
@@ -15,3 +15,3 @@ export declare const action: { | ||
}; | ||
export declare const actionTypes: ("builtIn" | "evalObject" | "pageJump" | "popUp" | "popUpDismiss" | "refresh" | "saveObject" | "openCamera" | "openPhotoLibrary" | "openDocumentManager" | "register" | "updateObject")[]; | ||
export declare const actionTypes: ("builtIn" | "evalObject" | "openCamera" | "openPhotoLibrary" | "openDocumentManager" | "pageJump" | "popUp" | "popUpDismiss" | "refresh" | "saveObject" | "register" | "updateObject")[]; | ||
export declare const component: { | ||
@@ -18,0 +18,0 @@ readonly BUTTON: "button"; |
@@ -106,2 +106,5 @@ import { StyleObject } from './styleTypes'; | ||
evalObject(v: unknown): v is T.EvalActionObject; | ||
openCamera(v: unknown): v is T.OpenCameraActionObject; | ||
openPhotoLibrary(v: unknown): v is T.OpenPhotoLibraryActionObject; | ||
openDocumentManager(v: unknown): v is T.OpenDocumentManagerActionObject; | ||
pageJump(v: unknown): v is T.PageJumpActionObject; | ||
@@ -108,0 +111,0 @@ popUp(v: unknown): v is T.PopupActionObject; |
@@ -57,2 +57,11 @@ "use strict"; | ||
}, | ||
openCamera: function (v) { | ||
return u.isObj(v) && v.actionType === 'openCamera'; | ||
}, | ||
openPhotoLibrary: function (v) { | ||
return u.isObj(v) && v.actionType === 'openPhotoLibrary'; | ||
}, | ||
openDocumentManager: function (v) { | ||
return u.isObj(v) && v.actionType === 'openDocumentManager'; | ||
}, | ||
pageJump: function (v) { | ||
@@ -59,0 +68,0 @@ return u.isObj(v) && v.actionType === 'pageJump'; |
{ | ||
"name": "noodl-types", | ||
"version": "1.0.61", | ||
"version": "1.0.62", | ||
"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
74760
1347