Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static createExtendHelper(f: ParserField): ParserField {
return {
args: [f],
data: {
type: Helpers.Extend,
},
name: Helpers.Extend,
type: {
name: Helpers.Extend,
},
} as ParserField;
}
/**
acceptsInputs,
options,
data: { type: extensionType, for: [Helpers.Extend] },
instances: undefined,
node: {
...Utils.createOND(),
notEditable: true,
name: undefined,
outputs: [],
},
root: false,
});
export const ExtensionDefinition: EditorNodeDefinition = {
type: Helpers.Extend,
data: { type: Helpers.Extend },
node: {
...Utils.createOND(),
notEditable: true,
name: undefined,
},
root: true,
acceptsInputs: (d, defs, _) =>
Utils.displayAsCategories(Utils.sortByParentType(Utils.dataForTypes(defs, [Helpers.Extend]))),
help: help.extend,
};
) => ({
acceptsInputs,
options,
data: { type: extensionType, for: [Helpers.Extend] },
instances: undefined,
node: {
...Utils.createOND(),
notEditable: true,
name: undefined,
outputs: [],
},
root: false,
});
export const ExtensionDefinition: EditorNodeDefinition = {
type: Helpers.Extend,
data: { type: Helpers.Extend },
node: {
...Utils.createOND(),
notEditable: true,
name: undefined,
},
root: true,
acceptsInputs: (d, defs, _) =>
Utils.displayAsCategories(Utils.sortByParentType(Utils.dataForTypes(defs, [Helpers.Extend]))),
help: help.extend,
};
acceptsInputs: (d, defs, _) =>
Utils.displayAsCategories(Utils.sortByParentType(Utils.dataForTypes(defs, [Helpers.Extend]))),
help: help.extend,
) => Partial & Pick = (
{ acceptsInputs, options },
extensionType,
) => ({
acceptsInputs,
options,
data: { type: extensionType, for: [Helpers.Extend] },
instances: undefined,
node: {
...Utils.createOND(),
notEditable: true,
name: undefined,
outputs: [],
},
root: false,
});
static createExtendHelper(f: ParserField): ParserField {
return {
args: [f],
data: {
type: Helpers.Extend,
},
name: Helpers.Extend,
type: {
name: Helpers.Extend,
},
} as ParserField;
}
/**