We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some applications may prefer to delay evaluation of the validation.
Possible implementations:
get
Option naming:
deferred: true
delayed: true
validate: 'delayed',
validateOn: 'load' | 'access'
deferred
import { autoConfig } from '@elite-libs/auto-config'; const config = autoConfig({ port: { args: ['--port', 'PORT'], deferred: true, required: true, }, });
autoConfig
import { autoConfig } from '@elite-libs/auto-config'; const config = autoConfig({ port: { args: ['--port', 'PORT'], required: true, }, }, { deferred: true });
import { autoConfig } from '@elite-libs/auto-config'; autoConfig.deferred = true; const config = autoConfig({ port: { args: ['--port', 'PORT'], required: true, }, });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why
Some applications may prefer to delay evaluation of the validation.
Pros
Cons
Dev notes
Possible implementations:
get
getter wrapper object?Considerations
Usage?
Option naming:
deferred: true
delayed: true
validate: 'delayed',
validateOn: 'load' | 'access'
Some Examples
1/3: Per Config:
deferred
option2/3:
autoConfig
Instance Default3/3: Global Override
The text was updated successfully, but these errors were encountered: