@storm-stack/core
Version:
A build toolkit and runtime used by Storm Software in TypeScript applications
1 lines • 2.02 kB
Source Map (JSON)
{"version":3,"sources":["../../src/define-config.ts"],"names":["defineConfig","config"],"mappings":";;;;;AAsCO,SAASA,aAAaC,MAAAA,EAAwB;AACnD,EAAA,OAAOA,MAAAA;AACT;AAFgBD,wBAAAA,CAAAA,YAAAA,EAAAA,cAAAA,CAAAA","file":"chunk-6PEPOGI5.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Storm Stack\n\n This code was released as part of the Storm Stack project. Storm Stack\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/storm-stack.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/storm-stack\n Documentation: https://docs.stormsoftware.com/projects/storm-stack\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n UserConfigExport,\n UserConfigFn,\n UserConfigFnObject,\n UserConfigFnPromise\n} from \"./types/build\";\nimport type { UserConfig } from \"./types/config\";\n\n/**\n * Type helper to make it easier to use storm.config.ts\n *\n * @remarks\n * The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object.\n */\nexport function defineConfig(config: UserConfig): UserConfig;\nexport function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>;\nexport function defineConfig(config: UserConfigFnObject): UserConfigFnObject;\nexport function defineConfig(config: UserConfigFnPromise): UserConfigFnPromise;\nexport function defineConfig(config: UserConfigFn): UserConfigFn;\nexport function defineConfig(config: UserConfigExport): UserConfigExport;\nexport function defineConfig(config: UserConfigExport): UserConfigExport {\n return config;\n}\n"]}