Installation
npm install --save @types/co-views
Summary
This package contains type definitions for co-views (https://github.com/tj/co-views/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/co-views.
index.d.ts
declare namespace CoViews {
interface Options {
/**
* default extname
*/
ext?: string | undefined;
/**
* default extname
*/
default?: string | undefined;
/**
* engine map
*/
map?: Object | undefined;
/**
* proxy partials
*/
partials?: Object | undefined;
/**
* cache compiled templates
*/
cache?: boolean | undefined;
/**
* common locals data
*/
locals?: Object | undefined;
}
}
/**
* Pass views `dir` and `opts` to return a render function.
*/
declare function CoViews(dir?: string, opts?: CoViews.Options): (view: string, locals?: Object) => any;
export = CoViews;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by devlee, and Joshua DeVinney.