Never Patronize Mothers

    @types/yesql
    TypeScript icon, indicating that this package has built-in type declarations

    4.1.1 • Public • Published

    Installation

    npm install --save @types/yesql

    Summary

    This package contains type definitions for yesql (https://github.com/pihvi/yesql#readme).

    Details

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

    index.d.ts

    // Type definitions for yesql 4.1
    // Project: https://github.com/pihvi/yesql#readme
    // Definitions by: Lluís Ulzurrun de Asanza Sáez <https://github.com/Sumolari>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.3
    
    declare function readSqlFiles(
        dir: string,
        options?: {
            pg?: boolean | undefined;
            type?: 'pg' | 'mysql' | undefined;
        },
    ): string;
    
    declare namespace readSqlFiles {
        type AnyParams = Record<string, any>;
        interface Options {
            useNullForMissing?: boolean | undefined;
        }
        function pg<TParams extends object = AnyParams>(
            query: string,
            options?: Options
        ): (params: TParams) => { text: string; values: Array<TParams[keyof TParams]> };
        function mysql<TParams extends object = AnyParams>(
            query: string,
            options?: Options
        ): (params: TParams) => { sql: string; values: Array<TParams[keyof TParams]> };
    }
    
    export = readSqlFiles;

    Additional Details

    • Last updated: Fri, 02 Jul 2021 16:32:09 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Lluís Ulzurrun de Asanza Sáez.

    Keywords

    none

    Install

    npm i @types/yesql

    DownloadsWeekly Downloads

    1,701

    Version

    4.1.1

    License

    MIT

    Unpacked Size

    4.51 kB

    Total Files

    4

    Last publish

    Collaborators

    • types