2.1.11 • Published 7 months ago

@types/co-views v2.1.11

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

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.

2.1.10

7 months ago

2.1.11

7 months ago

2.1.9

3 years ago

2.1.8

7 years ago

2.1.7

7 years ago

2.1.6

7 years ago

2.1.5

8 years ago

2.1.4

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago