to-fluent
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

to-fluent

Convert a function with a settings object to fluent API.

npm i to-fluent pnpm add to-fluent yarn add to-fluent

API

# Fluent

    C & [K in keyof T ]-?: T [K] extends boolean ? Fluent<C, T> : Fn<[ T [K] ], Fluent<C, T>> & {

    # not

      [K in keyof T ]-?: T [K] extends boolean ? Fluent<C, T> : never

    }

# bool  =  ...

    boolean

# toFluent(Schema, cb)

    # Schema
    # cb(settings)

      # settings

      cb(settings)  =>

toFluent<T extends  Class<any>, C extends  Fn<any, any>, S>(Schema, cb)  =>

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas

Readme

Keywords

Package Sidebar

Install

npm i to-fluent

Weekly Downloads

95

Version

2.2.0

License

MIT

Unpacked Size

37.3 kB

Total Files

18

Last publish

Collaborators

  • stagas