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

0.5.31 • Public • Published

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 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by David Sichau.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.280ts3.6
0.5.280ts3.7
0.5.280ts3.8
0.5.280ts3.9
0.5.280ts4.0
0.5.280ts4.1
0.5.280ts4.2
0.5.280ts4.3
0.5.280ts4.4
0.5.270ts2.0
0.5.270ts2.1
0.5.270ts2.2
0.5.270ts2.3
0.5.270ts2.4
0.5.270ts2.5
0.5.270ts2.6
0.5.270ts2.7
0.5.270ts2.8
0.5.270ts2.9
0.5.270ts3.0
0.5.270ts3.1
0.5.270ts3.2
0.5.270ts3.3
0.5.270ts3.4
0.5.270ts3.5
0.5.318ts5.8
0.5.318ts5.7
0.5.318latest
0.5.318ts4.5
0.5.318ts4.6
0.5.318ts4.7
0.5.318ts4.8
0.5.318ts4.9
0.5.318ts5.0
0.5.318ts5.1
0.5.318ts5.2
0.5.318ts5.3
0.5.318ts5.4
0.5.318ts5.5
0.5.318ts5.9
0.5.318ts5.6
0.5.318ts6.0

Version History

VersionDownloads (Last 7 Days)Published
0.5.318
0.5.301
0.5.290
0.5.280
0.5.270
0.5.260
0.5.25-alpha0
0.5.24-alpha0
0.5.23-alpha0
0.5.22-alpha0
0.5.21-alpha1
0.5.20-alpha0
0.5.19-alpha0
0.5.14-alpha0
0.5.13-alpha0

Package Sidebar

Install

npm i @types/finch

Weekly Downloads

10

Version

0.5.31

License

MIT

Unpacked Size

4.78 kB

Total Files

5

Last publish

Collaborators

  • types