Skip to content

Commit

Permalink
chore: add link to node eventemitter
Browse files Browse the repository at this point in the history
  • Loading branch information
Caele committed Mar 30, 2023
1 parent db7b752 commit abd9ee3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 39 deletions.
56 changes: 28 additions & 28 deletions apis/stardust/api-spec/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
"kind": "function",
"params": [],
"returns": {
"description": "The emitter instance.",
"description": "The emitter instance. Implements https://nodejs.org/api/events.html#class-eventemitter.",
"type": "Emitter"
},
"examples": [
Expand Down Expand Up @@ -1452,33 +1452,6 @@
}
}
},
"Plugin": {
"description": "An object literal containing meta information about the plugin and a function containing the plugin implementation.",
"stability": "experimental",
"availability": {
"since": "1.2.0"
},
"kind": "interface",
"entries": {
"info": {
"description": "Object that can hold various meta info about the plugin",
"kind": "object",
"entries": {
"name": {
"description": "The name of the plugin",
"type": "string"
}
}
},
"fn": {
"description": "The implementation of the plugin. Input and return value is up to the plugin implementation to decide based on its purpose.",
"type": "function"
}
},
"examples": [
"const plugin = {\n info: {\n name: \"example-plugin\",\n type: \"meta-type\",\n },\n fn: () => {\n // Plugin implementation goes here\n }\n};"
]
},
"Field": {
"kind": "alias",
"items": {
Expand Down Expand Up @@ -1597,6 +1570,33 @@
}
}
},
"Plugin": {
"description": "An object literal containing meta information about the plugin and a function containing the plugin implementation.",
"stability": "experimental",
"availability": {
"since": "1.2.0"
},
"kind": "interface",
"entries": {
"info": {
"description": "Object that can hold various meta info about the plugin",
"kind": "object",
"entries": {
"name": {
"description": "The name of the plugin",
"type": "string"
}
}
},
"fn": {
"description": "The implementation of the plugin. Input and return value is up to the plugin implementation to decide based on its purpose.",
"type": "function"
}
},
"examples": [
"const plugin = {\n info: {\n name: \"example-plugin\",\n type: \"meta-type\",\n },\n fn: () => {\n // Plugin implementation goes here\n }\n};"
]
},
"LoadType": {
"kind": "interface",
"params": [
Expand Down
20 changes: 10 additions & 10 deletions apis/stardust/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,16 +455,6 @@ declare namespace stardust {

}

/**
* An object literal containing meta information about the plugin and a function containing the plugin implementation.
*/
interface Plugin {
info: {
name: string;
};
fn: ()=>void;
}

type Field = string | EngineAPI.INxDimension | EngineAPI.INxMeasure | stardust.LibraryField;

/**
Expand Down Expand Up @@ -499,6 +489,16 @@ declare namespace stardust {
type: "dimension" | "measure";
}

/**
* An object literal containing meta information about the plugin and a function containing the plugin implementation.
*/
interface Plugin {
info: {
name: string;
};
fn: ()=>void;
}

interface LoadType {
(type: {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion apis/supernova/src/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ export function useRenderState() {
* Gets an event emitter instance for the visualization.
* @entry
* @experimental
* @returns {Emitter} The emitter instance.
* @returns {Emitter} The emitter instance. Implements https://nodejs.org/api/events.html#class-eventemitter.
* @example
* // In a Nebula visualization
* import { useEmitter } from '@nebula.js/stardust';
Expand Down

0 comments on commit abd9ee3

Please sign in to comment.