5.0.2 • Published 4 years ago

@types/keystonejs__app-nuxt v5.0.2

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

Installation

npm install --save @types/keystonejs__app-nuxt

Summary

This package contains type definitions for @keystonejs/app-nuxt (https://github.com/keystonejs/keystone).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keystonejs__app-nuxt.

index.d.ts

// Type definitions for @keystonejs/app-nuxt 5.0
// Project: https://github.com/keystonejs/keystone
// Definitions by: Kevin Brown <https://github.com/thekevinbrown>
//                 Timothee Clain <https://github.com/tclain>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5

// Because this is a scoped package, without this line Typescript doesn't associate the
// types with the right package.
// tslint:disable-next-line:no-single-declare-module
declare module '@keystonejs/app-nuxt' {
    import { BaseApp } from '@keystonejs/keystone';

    interface NuxtOptions {
        srcDir?: string | undefined;
        buildDir?: string | undefined;
    }

    class NuxtApp extends BaseApp {
        constructor(options?: NuxtOptions);

        prepareMiddleware({ dev }: { dev?: boolean | undefined }): Promise<void>;
        build(): Promise<void>;
    }
}

Additional Details

Credits

These definitions were written by Kevin Brown, and Timothee Clain.