0.2.3 • Published 7 months ago

@types/sentencer v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/sentencer

Summary

This package contains type definitions for sentencer (https://www.npmjs.com/package/sentencer (Does not have to be to GitHub).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sentencer.

index.d.ts

// Type definitions for sentencer 0.2
// Project: https://www.npmjs.com/package/sentencer (Does not have to be to GitHub, but prefer linking to a source code repository rather than to a project website.)
// Definitions by: Julien <https://github.com/JLambertazzo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

type action = () => string;
interface actions { [key: string]: action; }
interface options {
    nounList?: string[];
    adjectiveList?: string[];
    actions?: actions;
}
interface Sentencer {
    actions: actions;
    make: (template: string) => string;
    configure: (options: options) => void;
    use: (options: options) => Sentencer;
}

export = sentencer;
export as namespace sentencer;

declare const sentencer: Sentencer;

Additional Details

  • Last updated: Thu, 13 Jan 2022 20:01:41 GMT
  • Dependencies: none
  • Global values: sentencer

Credits

These definitions were written by Julien.

0.2.1

8 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.2.0

2 years ago