@types/systemjs

  • Version 6.1.0
  • Published
  • 6.3 kB
  • No dependencies
  • MIT license

Install

npm i @types/systemjs
yarn add @types/systemjs
pnpm add @types/systemjs

Overview

TypeScript definitions for SystemJS

Index

Variables

variable System

const System: {
import: System.ImportFn;
register(dependencies: string[], declare: System.DeclareFn): void;
register(name: string, dependencies: string[], declare: System.DeclareFn): void;
resolve(moduleId: string, parentUrl?: string): string;
delete(moduleId: string): false | System.UpdateModuleFn;
get(moduleId: string): System.Module | null;
get<T>(moduleId: string): T;
has(moduleId: string): boolean;
set(moduleId: string, module: System.Module): void;
entries(): Iterable<[string, System.Module]>;
};

    Namespaces

    namespace System

    namespace System {}

      interface Context

      interface Context {}

        property import

        import: ImportFn;

          property meta

          meta: {
          url: string;
          };

            interface Declare

            interface Declare {}

              property setters

              setters?: SetterFn[];

                method execute

                execute: () => any;

                  interface ExportFn

                  interface ExportFn {}

                    call signature

                    (exportName: string, value: any): void;

                      call signature

                      (exports: object): void;

                        interface Module

                        interface Module {}

                          property default

                          default?: any;

                            index signature

                            [exportName: string]: any;

                              type DeclareFn

                              type DeclareFn = (_export: ExportFn, _context: Context) => Declare;

                                type ExecuteFn

                                type ExecuteFn = () => any;

                                  type GetFn

                                  type GetFn = GetFnModule | GetFnGeneric;

                                    type GetFnGeneric

                                    type GetFnGeneric = <T>(moduleId: string) => T;

                                      type GetFnModule

                                      type GetFnModule = (moduleId: string) => Module;

                                        type ImportFn

                                        type ImportFn = <T extends Module>(
                                        moduleId: string,
                                        parentUrl?: string
                                        ) => Promise<T>;

                                          type SetterFn

                                          type SetterFn = (moduleValue: Module) => any;

                                            type UpdateModuleFn

                                            type UpdateModuleFn = () => void;

                                              Package Files (1)

                                              Dependencies (0)

                                              No dependencies.

                                              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/@types/systemjs.

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