mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped into fix-joi
This commit is contained in:
@@ -84,6 +84,10 @@ chai.request(app)
|
||||
.then((res: ChaiHttp.Response) => chai.expect(res).to.have.status(200))
|
||||
.catch((err: any) => { throw err; });
|
||||
|
||||
chai.request(app)
|
||||
.keepOpen()
|
||||
.close((err: any) => { throw err; });
|
||||
|
||||
const agent = chai.request.agent(app);
|
||||
|
||||
agent
|
||||
@@ -97,6 +101,8 @@ agent
|
||||
.then((res: ChaiHttp.Response) => chai.expect(res).to.have.status(200));
|
||||
});
|
||||
|
||||
agent.close((err: any) => { throw err; });
|
||||
|
||||
function test1() {
|
||||
const req = chai.request(app).get('/');
|
||||
req.then((res: ChaiHttp.Response) => {
|
||||
|
||||
Vendored
+2
@@ -64,6 +64,8 @@ declare global {
|
||||
del(url: string, callback?: (err: any, res: Response) => void): request.Request;
|
||||
options(url: string, callback?: (err: any, res: Response) => void): request.Request;
|
||||
patch(url: string, callback?: (err: any, res: Response) => void): request.Request;
|
||||
keepOpen(): Agent;
|
||||
close(callback?: (err: any) => void): Agent;
|
||||
}
|
||||
|
||||
interface TypeComparison {
|
||||
|
||||
Vendored
+1
-1
@@ -493,7 +493,7 @@ declare namespace i18next {
|
||||
/**
|
||||
* Returns rtl or ltr depending on languages read direction.
|
||||
*/
|
||||
dir(lng?: string): void;
|
||||
dir(lng?: string): "ltr" | "rtl";
|
||||
|
||||
/**
|
||||
* Exposes interpolation.format function added on init.
|
||||
|
||||
Vendored
+1
-1
@@ -128,7 +128,7 @@ declare namespace i18n {
|
||||
|
||||
loadLanguages(lngs: string[], callback?: () => void): void;
|
||||
|
||||
dir(lng?: string): string;
|
||||
dir(lng?: string): "ltr" | "rtl";
|
||||
|
||||
createInstance(options?: Options, callback?: (err: any, t: TranslationFunction) => void): I18n;
|
||||
|
||||
|
||||
Vendored
+2
@@ -464,6 +464,8 @@ declare namespace mapboxgl {
|
||||
anchor?: Anchor;
|
||||
|
||||
offset?: number | PointLike | { [key: string]: PointLike; };
|
||||
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export interface Style {
|
||||
|
||||
@@ -225,7 +225,7 @@ map.addLayer({
|
||||
/**
|
||||
* Popup
|
||||
*/
|
||||
var popup = new mapboxgl.Popup({closeOnClick: false, closeButton: true, anchor: 'top-right', offset: {'top': [0,0], 'bottom': [25,-50]} })
|
||||
var popup = new mapboxgl.Popup({closeOnClick: false, closeButton: true, anchor: 'top-right', offset: {'top': [0,0], 'bottom': [25,-50]}, className: 'custom-class' })
|
||||
.setLngLat([-50, 50])
|
||||
.setHTML('<h1>Hello World!</h1>')
|
||||
.addTo(map);
|
||||
|
||||
Vendored
+4
@@ -623,6 +623,10 @@ export interface ReactAsyncSelectProps<TValue = OptionValues> extends ReactSelec
|
||||
* replaces the placeholder while options are loading
|
||||
*/
|
||||
loadingPlaceholder?: string | JSX.Element;
|
||||
/**
|
||||
* displayed in the drop down list when the user did not type anything yet
|
||||
*/
|
||||
searchPromptText?: string;
|
||||
}
|
||||
|
||||
export type ReactAsyncCreatableSelectProps<TValue = OptionValues> = ReactAsyncSelectProps<TValue> & ReactCreatableSelectProps<TValue>;
|
||||
|
||||
Vendored
+6
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for yargs 11.0
|
||||
// Type definitions for yargs 11.1
|
||||
// Project: https://github.com/chevex/yargs
|
||||
// Definitions by: Martin Poelstra <https://github.com/poelstra>
|
||||
// Mizunashi Mana <https://github.com/mizunashi-mana>
|
||||
@@ -116,6 +116,8 @@ declare namespace yargs {
|
||||
|
||||
group(key: string | string[], groupName: string): Argv;
|
||||
|
||||
hide(key: string): Argv;
|
||||
|
||||
help(): Argv;
|
||||
help(enableExplicit: boolean): Argv;
|
||||
help(option: string, enableExplicit: boolean): Argv;
|
||||
@@ -185,6 +187,9 @@ declare namespace yargs {
|
||||
|
||||
showCompletionScript(): Argv;
|
||||
|
||||
showhidden(option?: string | boolean): Argv;
|
||||
showhidden(option: string, description?: string): Argv;
|
||||
|
||||
showHelp(consoleLevel?: string): Argv;
|
||||
|
||||
showHelpOnFail(enable: boolean, message?: string): Argv;
|
||||
|
||||
@@ -648,3 +648,16 @@ function Argv$check() {
|
||||
.check((argv, aliases) => void 0)
|
||||
.check((argv, aliases) => void 0, false);
|
||||
}
|
||||
|
||||
function Argv$hide() {
|
||||
const ya = yargs
|
||||
.hide('a');
|
||||
}
|
||||
|
||||
function Argv$showhidden() {
|
||||
const ya = yargs
|
||||
.showhidden()
|
||||
.showhidden(true)
|
||||
.showhidden('show-hidden')
|
||||
.showhidden('show-hidden', 'Show hidden options');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user