Giter Site home page Giter Site logo

agiledigital / idm-ts-types Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 3.0 618 KB

ForgeRock IDM TypeScript Types

License: Apache License 2.0

JavaScript 24.77% TypeScript 72.82% Shell 2.41%
forgerock forgerock-community idm openidm typescript typescript-types

idm-ts-types's People

Contributors

danielnixon avatar dbalmain avatar dependabot[bot] avatar dspasojevic avatar pearj avatar rorystokes avatar sammurphydev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

idm-ts-types's Issues

Unit tests

idm-ts-types is starting to get to a point where it will need tests, to ensure compatibility between refactors.

It looks like it's possible to assert for typescript compile errors

The unit tests would primarily just be sample idm typescript code that use all the features of the code-gen, so we know if a feature breaks when introducing new changes.

Problem with default fields when running a query

Need to fix this issue:

// TODO: This one doesn't work properly, it causes all type checking to disappear on fields. But not having this means, that when you don't provide
// fields, it thinks everything is available including non-default fields
// public query<F extends Fields<T>>(params: QueryFilter, options?: {}): QueryResult<D & Revision>;
public query<F extends Fields<T>>(params: QueryFilter, options: { readonly fields: F[] }): QueryResult<ResultType<T, F>>;
public query<F extends Fields<T>>(params: QueryFilter, options?: { readonly unCheckedFields?: string[] }): QueryResult<T & Revision>;
public query<F extends Fields<T>>(params: QueryFilter, { fields, unCheckedFields }: { readonly fields?: F[]; readonly unCheckedFields?: string[] }) {
return openidm.query(this.type, params, unCheckedFields ? unCheckedFields : fields);
}

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.