Releases: wix-incubator/corvid-types
Releases · wix-incubator/corvid-types
Load types asyncly
Reduce Bundle Size
This release provides the following:
- Allow users of corvid-types to have corvid-types not send over base libs (ES2020 and WebWorker) - useful incase the libs are already bundled in another lib like
monaco-typescript. - Prevent duplication of libs like
declaration.d.tsinfullCorvidTypes.jsonfor the different contexts.
Support retrieving and storing custom EventHandler objects
Allows retrieving and registering custom EventHandlers objects.
EventHandlers are described as such:
export interface EventHandler {
origin: string; // The name of the component that exposed this event handler
name: string; // The name of the event handler
description: string; // The JSDoc description
kind: "function";
type: string;
handlerArgs: HandlerArg[];
}- By default,
$wcomponentsEventHandlersare registered from their typescript definitions inwix-code-docs. - To register a new
EventHandler, call theregisterfunction.