heivo / cosmonaut

A type-safe CosmosDB query builder library for Node
MIT License
13 stars 1 forks source link

Nested fields with the name "at" are not recognized #1

Closed heivo closed 1 year ago

heivo commented 1 year ago

Given the following schema the field with the name "at" is not recognized and causes a type error when used:

interface Schema {
  nested: {
    at: string;
    ax: string;
  };
}

image

heivo commented 1 year ago

probably because this excludes Array.prototype functions image

heivo commented 1 year ago

fixed in https://github.com/heivo/cosmonaut/commit/e0a5cb05bd607bfc4255ff90b3e75790417e73c7