@types/co-views
TypeScript icon, indicating that this package has built-in type declarations

2.1.11 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/co-views

      Weekly Downloads

      89

      Version

      2.1.11

      License

      MIT

      Unpacked Size

      4.28 kB

      Total Files

      5

      Last publish

      Collaborators

      • types