Skip to content
Snippets Groups Projects
  • Frank Bessou's avatar
    3c0e7164ac2b
    fix: make type definitions in Schema.ts more precise · 3c0e7164ac2b
    Frank Bessou authored
    ESchemas now accepts the entity types as generic type parameter.
    SchemaEntityTypes is now the subset of "entities" property's keys which
    are strings. This is necessary because when the keyword "keyof" is used
    on a generic type it returns an union of strings, numbers and symbols.
    We only want to keep strings.
    3c0e7164ac2b
    History
    fix: make type definitions in Schema.ts more precise
    Frank Bessou authored
    ESchemas now accepts the entity types as generic type parameter.
    SchemaEntityTypes is now the subset of "entities" property's keys which
    are strings. This is necessary because when the keyword "keyof" is used
    on a generic type it returns an union of strings, numbers and symbols.
    We only want to keep strings.