Skip to content

Releases: wix-incubator/corvid-types

Load types asyncly

12 Jan 15:33
Compare
Choose a tag to compare

The API for consuming dynamic types has changed from sync to async.
This allows us to code split corvid-types and dynamically load all the JSON with the types and not bundle them.

Reduce Bundle Size

19 Dec 11:54
Compare
Choose a tag to compare

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.ts in fullCorvidTypes.json for the different contexts.

Support retrieving and storing custom EventHandler objects

31 Aug 14:10
Compare
Choose a tag to compare

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, $w components EventHandlers are registered from their typescript definitions in wix-code-docs.
  • To register a new EventHandler, call the register function.