npm.io
0.5.31 • Published 2 years ago

@types/finch

Licence
MIT
Version
0.5.31
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
51.3K

Installation

npm install --save @types/finch

Summary

This package contains type definitions for finch (https://github.com/stoodder/finchjs).

Details

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

index.d.ts

interface FinchCallback {
    (bindings?: any, childCallback?: () => void): any;
}

interface ExpandedCallback {
    setup?: FinchCallback | undefined;
    load?: FinchCallback | undefined;
    unload?: FinchCallback | undefined;
    teardown?: FinchCallback | undefined;
}

interface ObserveCallback {
    (...args: any[]): string;
}
interface FinchOptions {
    CoerceParameterTypes?: boolean | undefined;
}

interface FinchStatic {
    route(route: string, callback: FinchCallback): void;
    route(route: string, callbacks: ExpandedCallback): void;
    call(uri: string): void;

    observe(argN: string[], callback: (params: ObserveCallback) => void): void;
    observe(callback: (params: ObserveCallback) => void): void;
    observe(...args: any[]): void;
    navigate(uri: string, queryParams?: any, doUpdate?: boolean): void;
    navigate(uri: string, doUpdate: boolean): void;
    navigate(queryParams: any, doUpdate?: boolean): void;
    listen(): boolean;
    ignore(): boolean;
    abort(): void;
    options(options: FinchOptions): void;
}

declare var Finch: FinchStatic;
declare module "finch" {
    export = Finch;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by David Sichau.