0.5.31 • Published 7 months ago

@types/finch v0.5.31

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

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

// Type definitions for Finch 0.5.13
// Project: https://github.com/stoodder/finchjs
// Definitions by: David Sichau <https://github.com/DavidSichau>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped


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: Thu, 08 Jul 2021 12:01:36 GMT
  • Dependencies: none
  • Global values: Finch

Credits

These definitions were written by David Sichau.

0.5.30

7 months ago

0.5.31

7 months ago

0.5.29

8 months ago

0.5.28

3 years ago

0.5.27

8 years ago

0.5.26

8 years ago

0.5.25-alpha

8 years ago

0.5.24-alpha

8 years ago

0.5.23-alpha

8 years ago

0.5.22-alpha

8 years ago

0.5.21-alpha

8 years ago

0.5.20-alpha

8 years ago

0.5.19-alpha

8 years ago

0.5.14-alpha

8 years ago

0.5.13-alpha

8 years ago