forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formatted types/m* packages with dprint (DefinitelyTyped#66534)
* Formatted types/m* packages with dprint * Fixed introduced issues * Fix mapbox__mapbox-sdk * Another import-default suppression * Fix some conflicts * Reset mp4frag to master
- Loading branch information
1 parent
eaf4e76
commit 07b78cb
Showing
952 changed files
with
50,354 additions
and
46,910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import CircularJSON = require('macaca-circular-json'); | ||
import CircularJSON = require("macaca-circular-json"); | ||
|
||
const replacer = (key: any, val: any) => { | ||
return val; | ||
return val; | ||
}; | ||
|
||
const replacerArray = ['a', 'x']; | ||
const replacerArray = ["a", "x"]; | ||
|
||
CircularJSON.parse('{"a":"b"}'); | ||
CircularJSON.parse("{\"a\":\"b\"}"); | ||
|
||
CircularJSON.parse('{"a":"b"}', replacer); | ||
CircularJSON.parse("{\"a\":\"b\"}", replacer); | ||
|
||
// just stringify a value | ||
CircularJSON.stringify({a: 'b'}); | ||
CircularJSON.stringify({ a: "b" }); | ||
|
||
// do replacements for part of the object | ||
CircularJSON.stringify({a: 'b'}, replacer); | ||
CircularJSON.stringify({a: 'b'}, replacerArray); | ||
CircularJSON.stringify({ a: "b" }, replacer); | ||
CircularJSON.stringify({ a: "b" }, replacerArray); | ||
|
||
// add whitespace to the output | ||
CircularJSON.stringify({a: 'b'}, replacer, 5); | ||
CircularJSON.stringify({a: 'b'}, replacerArray, 5); | ||
CircularJSON.stringify({ a: "b" }, replacer, 5); | ||
CircularJSON.stringify({ a: "b" }, replacerArray, 5); | ||
|
||
// do not actually set up a re-parseable object | ||
CircularJSON.stringify({a: 'b'}, replacer, 5, true); | ||
CircularJSON.stringify({a: 'b'}, replacerArray, 5, true); | ||
CircularJSON.stringify({ a: "b" }, replacer, 5, true); | ||
CircularJSON.stringify({ a: "b" }, replacerArray, 5, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,101 @@ | ||
import madge = require("madge"); | ||
|
||
// $ExpectType Promise<MadgeInstance> | ||
madge(''); | ||
madge(""); | ||
|
||
// $ExpectType Promise<MadgeInstance> | ||
madge('', {}); | ||
madge("", {}); | ||
|
||
// $ExpectType Promise<MadgeInstance> | ||
madge('', { baseDir: '/src' }); | ||
madge("", { baseDir: "/src" }); | ||
|
||
// $ExpectType Promise<MadgeInstance> | ||
madge('', { | ||
baseDir: '/src', | ||
madge("", { | ||
baseDir: "/src", | ||
includeNpm: true, | ||
fileExtensions: ['ts', 'js'], | ||
fileExtensions: ["ts", "js"], | ||
excludeRegExp: [/ab+c/], | ||
requireConfig: '', | ||
webpackConfig: '', | ||
tsConfig: '', | ||
layout: '', | ||
rankdir: 'RL', | ||
fontName: '', | ||
fontSize: '', | ||
backgroundColor: '', | ||
nodeShape: '', | ||
nodeStyle: '', | ||
nodeColor: '', | ||
noDependencyColor: '', | ||
cyclicNodeColor: '', | ||
edgeColor: '', | ||
requireConfig: "", | ||
webpackConfig: "", | ||
tsConfig: "", | ||
layout: "", | ||
rankdir: "RL", | ||
fontName: "", | ||
fontSize: "", | ||
backgroundColor: "", | ||
nodeShape: "", | ||
nodeStyle: "", | ||
nodeColor: "", | ||
noDependencyColor: "", | ||
cyclicNodeColor: "", | ||
edgeColor: "", | ||
graphVizOptions: {}, | ||
graphVizPath: '', | ||
graphVizPath: "", | ||
detectiveOptions: {}, | ||
dependencyFilter: (id: string) => id !== 'filtered-path' | ||
dependencyFilter: (id: string) => id !== "filtered-path", | ||
}); | ||
|
||
// @ts-expect-error | ||
madge(); | ||
// @ts-expect-error | ||
madge(0); | ||
// @ts-expect-error | ||
madge('', 0); | ||
madge("", 0); | ||
// @ts-expect-error | ||
madge('', { unexpectedConfig: 1 }); | ||
madge("", { unexpectedConfig: 1 }); | ||
|
||
(async () => { | ||
await madge(''); // $ExpectType MadgeInstance | ||
await madge(""); // $ExpectType MadgeInstance | ||
// @ts-expect-error | ||
await madge(); | ||
|
||
(await madge('')).obj(); // $ExpectType MadgeModuleDependencyGraph | ||
(await madge("")).obj(); // $ExpectType MadgeModuleDependencyGraph | ||
// @ts-expect-error | ||
(await madge('')).obj(0); | ||
(await madge("")).obj(0); | ||
|
||
(await madge('')).warnings(); // $ExpectType MadgeWarnings | ||
(await madge("")).warnings(); // $ExpectType MadgeWarnings | ||
// @ts-expect-error | ||
(await madge('')).warnings(0); | ||
(await madge("")).warnings(0); | ||
|
||
(await madge('')).circular(); // $ExpectType string[][] | ||
(await madge("")).circular(); // $ExpectType string[][] | ||
// @ts-expect-error | ||
(await madge('')).circular(0); | ||
(await madge("")).circular(0); | ||
|
||
(await madge('')).circularGraph(); // $ExpectType MadgeModuleDependencyGraph | ||
(await madge("")).circularGraph(); // $ExpectType MadgeModuleDependencyGraph | ||
// @ts-expect-error | ||
(await madge('')).circularGraph(0); | ||
(await madge("")).circularGraph(0); | ||
|
||
(await madge('')).depends(''); // $ExpectType string[] | ||
(await madge("")).depends(""); // $ExpectType string[] | ||
// @ts-expect-error | ||
(await madge('')).depends(); | ||
(await madge("")).depends(); | ||
// @ts-expect-error | ||
(await madge('')).depends(0); | ||
(await madge("")).depends(0); | ||
|
||
(await madge('')).orphans(); // $ExpectType string[] | ||
(await madge("")).orphans(); // $ExpectType string[] | ||
// @ts-expect-error | ||
(await madge('')).orphans(0); | ||
(await madge("")).orphans(0); | ||
|
||
(await madge('')).leaves(); // $ExpectType string[] | ||
(await madge("")).leaves(); // $ExpectType string[] | ||
// @ts-expect-error | ||
(await madge('')).leaves(0); | ||
(await madge("")).leaves(0); | ||
|
||
(await madge('')).dot(); // $ExpectType Promise<string> | ||
(await madge('')).dot(true); // $ExpectType Promise<string> | ||
(await madge('')).dot(false); // $ExpectType Promise<string> | ||
(await madge("")).dot(); // $ExpectType Promise<string> | ||
(await madge("")).dot(true); // $ExpectType Promise<string> | ||
(await madge("")).dot(false); // $ExpectType Promise<string> | ||
// @ts-expect-error | ||
(await madge('')).dot(0); | ||
(await madge("")).dot(0); | ||
|
||
(await madge('')).image(''); // $ExpectType Promise<string> | ||
(await madge("")).image(""); // $ExpectType Promise<string> | ||
// @ts-expect-error | ||
(await madge('')).image(); | ||
(await madge("")).image(); | ||
// @ts-expect-error | ||
(await madge('')).image(0); | ||
(await madge('')).image('', true); // $ExpectType Promise<string> | ||
(await madge('')).image('', false); // $ExpectType Promise<string> | ||
(await madge("")).image(0); | ||
(await madge("")).image("", true); // $ExpectType Promise<string> | ||
(await madge("")).image("", false); // $ExpectType Promise<string> | ||
// @ts-expect-error | ||
(await madge('')).image('', 0); | ||
(await madge("")).image("", 0); | ||
|
||
(await madge('')).svg(); // $ExpectType Promise<Buffer> | ||
(await madge("")).svg(); // $ExpectType Promise<Buffer> | ||
// @ts-expect-error | ||
(await madge('')).svg(0); | ||
(await madge("")).svg(0); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/// <reference types="node" /> | ||
|
||
import fs = require('fs'); | ||
import magic = require('magic-number'); | ||
import fs = require("fs"); | ||
import magic = require("magic-number"); | ||
|
||
var buffer: any = new Buffer(100); | ||
buffer.write('7z', 'binary'); | ||
fs.writeFile('test.love', buffer, function(err: any) { | ||
console.log(magic.detectFile('test.love')); // => 'application/7z-x-compressed' | ||
fs.unlinkSync('test.love'); | ||
buffer.write("7z", "binary"); | ||
fs.writeFile("test.love", buffer, function(err: any) { | ||
console.log(magic.detectFile("test.love")); // => 'application/7z-x-compressed' | ||
fs.unlinkSync("test.love"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.