This commit is contained in:
Klaus Kopruch
2018-07-11 08:44:32 +02:00
9 changed files with 36 additions and 4 deletions
+6
View File
@@ -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) => {
+2
View File
@@ -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 {
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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;
+2
View File
@@ -464,6 +464,8 @@ declare namespace mapboxgl {
anchor?: Anchor;
offset?: number | PointLike | { [key: string]: PointLike; };
className?: string;
}
export interface Style {
+1 -1
View File
@@ -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);
+4
View File
@@ -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>;
+6 -1
View File
@@ -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;
+13
View File
@@ -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');
}