Перейти к основному содержанию

IMPORT

Callable

  • IMPORT(name: string, value?: string): void

  • Imports library dependency. Libraries should be stored in the "libraryDir" directory, specified in your build.config. You can either import the whole library or single function/value using value parameter.


    Parameters

    • name: string

      library name specified in the library's EXPORT declaration

    • optionalvalue: string

      name of the function or value you wish to import, or "*" to import the whole library. Defaults to importing the whole library

    Returns void