umi

  • Version 4.3.25
  • Published
  • 44.9 kB
  • 12 dependencies
  • MIT license

Install

npm i umi
yarn add umi
pnpm add umi

Overview

umi

Index

Variables

variable RUNTIME_TYPE_FILE_NAME

const RUNTIME_TYPE_FILE_NAME: string;

    Functions

    function defineConfig

    defineConfig: (config: ConfigType) => ConfigType;
    • 通过方法的方式配置umi,能带来更好的 typescript 体验

      Parameter config

      Returns

      ConfigType

    function defineMock

    defineMock: (mockData: { [key: string]: any }) => { [key: string]: any };

      function run

      run: (opts?: IOpts) => Promise<void>;

        Classes

        class Service

        class Service extends CoreService {}

          constructor

          constructor(opts?: any);

            method run2

            run2: (opts: { name: string; args?: any }) => Promise<void>;

              Package Files (6)

              Dependencies (12)

              Dev Dependencies (0)

              No dev dependencies.

              Peer Dependencies (0)

              No peer dependencies.

              Badge

              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/umi.

              • Markdown
                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/umi)
              • HTML
                <a href="https://www.jsdocs.io/package/umi"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>