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

0.1.2 • Public • Published

Installation

npm install --save @types/architect

Summary

This package contains type definitions for architect (https://github.com/c9/architect#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/architect.

index.d.ts

/// <reference types="node" />

import { EventEmitter } from "events";

export type Config = any;
export type Service = any;
export type Plugin = any;

export function loadConfig(configPath: string, callback?: (err: Error, config: Config) => void): void;
export function createApp(config: Config, callback?: (err: Error, app: Architect) => void): Architect;

export interface Architect extends EventEmitter {
    on(event: "service", listener: (name: string, service: Service, plugin: Plugin) => void): this;
    on(event: "plugin", listener: (plugin: Plugin) => void): this;
    on(event: "ready", listener: (app: Architect) => void): this;
    on(event: "error", listener: (error: Error) => void): this;
    getService(name: string): any;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Ivan Lopez.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/architect

Weekly Downloads

89

Version

0.1.2

License

MIT

Unpacked Size

4.09 kB

Total Files

5

Last publish

Collaborators

  • types