Function defineOAuthEnvSchema
- defineOAuthEnvSchema<Properties>(definer): EnvObject<Properties>
Type Parameters
Properties extends EnvObjectProperties
Parameters
definer: ((t) => Properties)
- (t): Properties
Parameters
t: {
noWhitelabeling: (<T>(schema) => TAddOptional<T>);
optional: {
<T, F>(schema, enable): TOptionalFromMappedResult<T, F>;
<T, F>(schema, enable): TOptionalWithFlag<T, F>;
<T>(schema): TOptionalFromMappedResult<T, true>;
<T>(schema): TAddOptional<T>;
};
string: (<Opts>(opts?) => OmitIndexSignature<TString>);
}
noWhitelabeling: (<T>(schema) => TAddOptional<T>)
- <T>(schema): TAddOptional<T>
Returns TAddOptional<T>
optional: {
<T, F>(schema, enable): TOptionalFromMappedResult<T, F>;
<T, F>(schema, enable): TOptionalWithFlag<T, F>;
<T>(schema): TOptionalFromMappedResult<T, true>;
<T>(schema): TAddOptional<T>;
}
- <T, F>(schema, enable): TOptionalFromMappedResult<T, F>
Type Parameters
T extends TMappedResult<TProperties>
F extends boolean
Returns TOptionalFromMappedResult<T, F>
- <T, F>(schema, enable): TOptionalWithFlag<T, F>
Type Parameters
T extends TSchema
F extends boolean
Returns TOptionalWithFlag<T, F>
- <T>(schema): TOptionalFromMappedResult<T, true>
Type Parameters
T extends TMappedResult<TProperties>
Returns TOptionalFromMappedResult<T, true>
- <T>(schema): TAddOptional<T>
Returns TAddOptional<T>
string: (<Opts>(opts?) => OmitIndexSignature<TString>)
- <Opts>(opts?): OmitIndexSignature<TString>
Type Parameters
Opts extends EnvStringOpts
Returns OmitIndexSignature<TString>
Returns Properties
Returns EnvObject<Properties>
Used to define the env schema for a Connector.