UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

13 lines (11 loc) 327 B
import {NodeContext} from '../../../engine/poly/NodeContext'; import {TypedNode} from '../../../engine/nodes/_Base'; export class BaseOnCreateHookRegister<NC extends NodeContext, T extends string> { context() { return NodeContext.SOP as NC; } type() { return 'no-type' as T; } onCreate(node: TypedNode<NC, any>) {} }