mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-25 10:12:52 +00:00
45 lines
966 B
TypeScript
45 lines
966 B
TypeScript
// 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;
|
|
|
|
/**
|
|
* default extname
|
|
*/
|
|
default?: string;
|
|
|
|
/**
|
|
* engine map
|
|
*/
|
|
map?: Object;
|
|
|
|
/**
|
|
* proxy partials
|
|
*/
|
|
partials?: Object;
|
|
|
|
/**
|
|
* cache compiled templates
|
|
*/
|
|
cache?: boolean;
|
|
|
|
/**
|
|
* common locals data
|
|
*/
|
|
locals?: Object;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 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;
|