GithubHelp home page GithubHelp logo

voronov-maxim / tstoodata Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 1.0 220 KB

Typescript OData queries in a fluent way like linq.

License: MIT License

TypeScript 74.95% JavaScript 25.05%
babel-plugin client fluent linq odata typescript

tstoodata's People

Contributors

voronov-maxim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

i066088

tstoodata's Issues

Issue with `some` on array of enum values

Hi there, first off thanks so much for this library. It's fantastic!

I have a type that houses an array of enums.

When I try to execute a some against it, I get the following error:

getVariableTextNode invalid node type Identifier

The code I'm running:

let res = context.Bins.filter( o => o.affinityPartStatuses.some(i => i === PartStatus.Good || i === PartStatus.Defective || i === PartStatus.Damaged)

I tried to re-create this as a test in the repo, however I'm unable to get it to run in VS2019 properly.

Thanks in advance!

Throws 'process is not defined' error on functions

Hi
This library throws an error 'process is not defined' when I use any functions on the query, it just works when I use getQueryUrl or toArrayAsync.
My configuration is:

"dependencies": {
    "@angular/animations": "~12.0.3",
    "@angular/common": "~12.0.3",
    "@angular/compiler": "~12.0.3",
    "@angular/core": "~12.0.3",
    "@angular/forms": "~12.0.3",
    "@angular/platform-browser": "~12.0.3",
    "@angular/platform-browser-dynamic": "~12.0.3",
    "@angular/router": "~12.0.3",
    "rxjs": "~6.6.0",
    "ts2odata": "0.0.32",
    "tslib": "^2.1.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~12.0.3",
    "@angular/cli": "~12.0.3",
    "@angular/compiler-cli": "~12.0.3",
    "@babel/cli": "^7.14.3",
    "@babel/core": "^7.14.3",
    "@types/jasmine": "~3.6.0",
    "@types/node": "^12.11.1",
    "babel-plugin-ts2odata": "0.0.31",
    "jasmine-core": "~3.7.0",
    "karma": "~6.3.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.0.3",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "typescript": "~4.2.3"
  }

Sorry if some info is missing, but I am new in angular

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.