Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libs
config
Merge requests
!7
readded config to export
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
readded config to export
2-add-optional-prefix-for-env-variables
into
main
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Sigmund, Dominik
requested to merge
2-add-optional-prefix-for-env-variables
into
main
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
Closes
#2 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
d24103ad
1 commit,
1 year ago
2 files
+
3
−
5
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
index.d.ts
+
2
−
4
Options
// Define the shape of the return type of the config function
// Define the shape of the return type of the config function
interface
Config
{
export
interface
Config
{
_reload
():
void
;
_reload
():
void
;
_show
():
any
;
_show
():
any
;
[
key
:
string
]:
any
;
// Index signature for dynamic properties
[
key
:
string
]:
any
;
// Index signature for dynamic properties
}
}
// Declare the function that returns a Config object
// Declare the function that returns a Config object
declare
function
createConfig
(
basePath
?:
string
,
envPrefix
?:
string
):
Config
;
export
declare
function
createConfig
(
basePath
?:
string
,
envPrefix
?:
string
):
Config
;
// Export the declared function
export
=
createConfig
;
Loading