Gaunt Sloth Assistant
    Preparing search index...

    Variable importFromFilePathConst

    importFromFilePath: (
        filePath: string,
    ) => Promise<{ configure: () => Promise<Partial<GthConfig>> }> = importExternalFile

    Alias for importExternalFile for backward compatibility with tests

    Type declaration

      • (filePath: string): Promise<{ configure: () => Promise<Partial<GthConfig>> }>
      • Dynamically imports a module from a file path from the outside of the installation dir

        Parameters

        • filePath: string

        Returns Promise<{ configure: () => Promise<Partial<GthConfig>> }>

        A promise that resolves to the imported module

    The path to the file to import

    A promise that resolves to the imported module