2.1.11 • Published 7 months ago
@types/co-views v2.1.11
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
// Type definitions for co-views 2.1
// Project: https://github.com/tj/co-views/
// Definitions by: devlee <https://github.com/devlee>, Joshua DeVinney <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 08 Jul 2021 09:08:00 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by devlee, and Joshua DeVinney.