wix-incubator / corvid-types

Type definitions for Corvid by Wix
MIT License
5 stars 3 forks source link

[Types Platformization] `fullCorvidTypes.json` to only include the contents of each lib once #79

Closed dlvhdr closed 2 years ago

dlvhdr commented 2 years ago

Summary

Before => fullCorvidTypes.json included multiple copies of a libs content if it was used by multiple contexts.

image

Now => fullCorvidTypes.json only includes each lib's content once. image

Details

fullCorvidTypes.json has a new structure:

type Lib = {
  path: string;
  content: string;
};

type FullCorvidTypes = {
  contexts: Record<LibCollections, string[]>;
  libs: Array<Lib>;
};