@raisindb/functions-types 0.1.17 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/raisin.d.ts +14 -0
package/package.json
CHANGED
package/raisin.d.ts
CHANGED
|
@@ -158,6 +158,20 @@ interface RaisinNode {
|
|
|
158
158
|
* @param data - Resource (from resize()), or { base64, mimeType, name }
|
|
159
159
|
*/
|
|
160
160
|
addResource(propertyPath: string, data: Resource | ResourceUploadData | string): Promise<any>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* True if this node carries the given mixin (type-declared, transitively).
|
|
164
|
+
* Backed by the server-materialized effective-mixin set.
|
|
165
|
+
* @param mixinName - e.g., "studio:SEO"
|
|
166
|
+
*/
|
|
167
|
+
hasMixin(mixinName: string): boolean;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* True if this node "is a" given type — its node_type, any `extends` ancestor,
|
|
171
|
+
* or any effective mixin.
|
|
172
|
+
* @param typeName - e.g., "studio:Folder"
|
|
173
|
+
*/
|
|
174
|
+
isNodeType(typeName: string): boolean;
|
|
161
175
|
}
|
|
162
176
|
|
|
163
177
|
interface ResourceUploadData {
|