Skip to content

Commit 5ff1712

Browse files
committed
Support _static
1 parent 5aec97d commit 5ff1712

16 files changed

+3277
-694
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 130 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,17 @@ interface AbortSignal extends EventTarget {
242242
declare var AbortSignal: {
243243
prototype: AbortSignal;
244244
new(): AbortSignal;
245-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
245+
/**
246+
* The AbortSignal.abort() static method returns an AbortSignal that is already set as aborted (and which does not trigger an abort event).
247+
*
248+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
249+
*/
246250
abort(reason?: any): AbortSignal;
247-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
251+
/**
252+
* The AbortSignal.any() static method takes an iterable of abort signals and returns an AbortSignal. The returned abort signal is aborted when any of the input iterable abort signals are aborted. The abort reason will be set to the reason of the first signal that is aborted. If any of the given abort signals are already aborted then so will be the returned AbortSignal.
253+
*
254+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
255+
*/
248256
any(signals: AbortSignal[]): AbortSignal;
249257
};
250258

@@ -1314,9 +1322,17 @@ interface URL {
13141322
declare var URL: {
13151323
prototype: URL;
13161324
new(url: string | URL, base?: string | URL): URL;
1317-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
1325+
/**
1326+
* The URL.canParse() static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
1327+
*
1328+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
1329+
*/
13181330
canParse(url: string | URL, base?: string | URL): boolean;
1319-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
1331+
/**
1332+
* The URL.parse() static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
1333+
*
1334+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
1335+
*/
13201336
parse(url: string | URL, base?: string | URL): URL | null;
13211337
};
13221338

@@ -1603,11 +1619,23 @@ declare namespace WebAssembly {
16031619
var Module: {
16041620
prototype: Module;
16051621
new(bytes: BufferSource): Module;
1606-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static) */
1622+
/**
1623+
* The WebAssembly.Module.customSections() static method returns a copy of the contents of all custom sections in the given module with the given string name.
1624+
*
1625+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
1626+
*/
16071627
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
1608-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static) */
1628+
/**
1629+
* The WebAssembly.Module.exports() static method returns an array containing descriptions of all the declared exports of the given Module.
1630+
*
1631+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
1632+
*/
16091633
exports(moduleObject: Module): ModuleExportDescriptor[];
1610-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static) */
1634+
/**
1635+
* The WebAssembly.Module.imports() static method returns an array containing descriptions of all the declared imports of the given Module.
1636+
*
1637+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
1638+
*/
16111639
imports(moduleObject: Module): ModuleImportDescriptor[];
16121640
};
16131641

@@ -1724,44 +1752,120 @@ declare namespace WebAssembly {
17241752
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)
17251753
*/
17261754
interface Console {
1727-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
1755+
/**
1756+
* The console.assert() static method writes an error message to the console if the assertion is false. If the assertion is true, nothing happens.
1757+
*
1758+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static)
1759+
*/
17281760
assert(condition?: boolean, ...data: any[]): void;
1729-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
1761+
/**
1762+
* The console.clear() static method clears the console if possible.
1763+
*
1764+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)
1765+
*/
17301766
clear(): void;
1731-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
1767+
/**
1768+
* The console.count() static method logs the number of times that this particular call to count() has been called.
1769+
*
1770+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)
1771+
*/
17321772
count(label?: string): void;
1733-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
1773+
/**
1774+
* The console.countReset() static method resets counter used with console.count().
1775+
*
1776+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
1777+
*/
17341778
countReset(label?: string): void;
1735-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
1779+
/**
1780+
* The console.debug() static method outputs a message to the console at the "debug" log level. The message is only displayed to the user if the console is configured to display debug output. In most cases, the log level is configured within the console UI. This log level might correspond to the Debug or Verbose log level.
1781+
*
1782+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
1783+
*/
17361784
debug(...data: any[]): void;
1737-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
1785+
/**
1786+
* The console.dir() static method displays a list of the properties of the specified JavaScript object. In browser consoles, the output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects.
1787+
*
1788+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
1789+
*/
17381790
dir(item?: any, options?: any): void;
1739-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
1791+
/**
1792+
* The console.dirxml() static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes.
1793+
*
1794+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
1795+
*/
17401796
dirxml(...data: any[]): void;
1741-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
1797+
/**
1798+
* The console.error() static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the console is configured to display error output. In most cases, the log level is configured within the console UI. The message may be formatted as an error, with red colors and call stack information.
1799+
*
1800+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
1801+
*/
17421802
error(...data: any[]): void;
1743-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
1803+
/**
1804+
* The console.group() static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console.groupEnd() is called.
1805+
*
1806+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
1807+
*/
17441808
group(...data: any[]): void;
1745-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
1809+
/**
1810+
* The console.groupCollapsed() static method creates a new inline group in the console. Unlike console.group(), however, the new group is created collapsed. The user will need to use the disclosure button next to it to expand it, revealing the entries created in the group.
1811+
*
1812+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
1813+
*/
17461814
groupCollapsed(...data: any[]): void;
1747-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
1815+
/**
1816+
* The console.groupEnd() static method exits the current inline group in the console. See Using groups in the console in the console documentation for details and examples.
1817+
*
1818+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
1819+
*/
17481820
groupEnd(): void;
1749-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
1821+
/**
1822+
* The console.info() static method outputs a message to the console at the "info" log level. The message is only displayed to the user if the console is configured to display info output. In most cases, the log level is configured within the console UI. The message may receive special formatting, such as a small "i" icon next to it.
1823+
*
1824+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
1825+
*/
17501826
info(...data: any[]): void;
1751-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
1827+
/**
1828+
* The console.log() static method outputs a message to the console.
1829+
*
1830+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)
1831+
*/
17521832
log(...data: any[]): void;
1753-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
1833+
/**
1834+
* The console.table() static method displays tabular data as a table.
1835+
*
1836+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
1837+
*/
17541838
table(tabularData?: any, properties?: string[]): void;
1755-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
1839+
/**
1840+
* The console.time() static method starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call console.timeEnd() with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started.
1841+
*
1842+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
1843+
*/
17561844
time(label?: string): void;
1757-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
1845+
/**
1846+
* The console.timeEnd() static method stops a timer that was previously started by calling console.time().
1847+
*
1848+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
1849+
*/
17581850
timeEnd(label?: string): void;
1759-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
1851+
/**
1852+
* The console.timeLog() static method logs the current value of a timer that was previously started by calling console.time().
1853+
*
1854+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
1855+
*/
17601856
timeLog(label?: string, ...data: any[]): void;
17611857
timeStamp(label?: string): void;
1762-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
1858+
/**
1859+
* The console.trace() static method outputs a stack trace to the console.
1860+
*
1861+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)
1862+
*/
17631863
trace(...data: any[]): void;
1764-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
1864+
/**
1865+
* The console.warn() static method outputs a warning message to the console at the "warning" log level. The message is only displayed to the user if the console is configured to display warning output. In most cases, the log level is configured within the console UI. The message may receive special formatting, such as yellow colors and a warning icon.
1866+
*
1867+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
1868+
*/
17651869
warn(...data: any[]): void;
17661870
}
17671871

0 commit comments

Comments
 (0)