types-mediawiki
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -1,2 +0,1 @@ | ||
import './textSelection'; |
@@ -1,4 +0,2 @@ | ||
declare global { | ||
interface JQuery { | ||
@@ -35,5 +33,4 @@ // one overload for each command | ||
} | ||
} | ||
export {} |
@@ -1,2 +0,2 @@ | ||
import { title } from './index'; | ||
type title = string | mw.Title | ||
@@ -30,3 +30,3 @@ interface ApiOptions { | ||
getToken(type: string, additionalParams?: any | string): JQuery.Promise<string> | ||
getToken(type: string, additionalParams?: any): JQuery.Promise<string> | ||
@@ -47,3 +47,3 @@ badToken(type: string): void | ||
content: string | ||
}) => any | string): JQuery.Promise<any> | ||
}) => any): JQuery.Promise<any> | ||
@@ -70,7 +70,7 @@ newSection(title: title, header: string, message: string, additionalParams?: any): JQuery.Promise<any> | ||
watch(pages: title | title[]): JQuery.Promise<{ | ||
watch: { title: string, watched: boolean } | { title: string, watched: boolean }[] | ||
watch: { title: string, watched: boolean } | Array<{ title: string, watched: boolean }> | ||
}> | ||
unwatch(pages: title | title[]): JQuery.Promise<{ | ||
watch: { title: string, watched: boolean } | { title: string, watched: boolean }[] | ||
watch: { title: string, watched: boolean } | Array<{ title: string, watched: boolean }> | ||
}> | ||
@@ -101,3 +101,3 @@ | ||
chunkedUploadToStash(file, data?, chunkSize?, chunkRetries?): JQuery.Promise<any> | ||
chunkedUploadToStash(file: File, data?: any, chunkSize?: number, chunkRetries?: number): JQuery.Promise<any> | ||
@@ -112,5 +112,3 @@ upload(file: File | Blob | HTMLInputElement, data: any): JQuery.Promise<any> | ||
login(username: string, password: string): JQuery.Promise<any> | ||
} | ||
class ForeignApi extends mw.Api { | ||
@@ -123,1 +121,3 @@ constructor(url: string | mw.Uri, options: ForeignApiOptions) | ||
} | ||
export {} |
@@ -1,4 +0,3 @@ | ||
interface Hook { | ||
add(...handler: ((...args: any[]) => any)[]): Hook | ||
add(...handler: Array<((...args: any[]) => any)>): Hook | ||
fire(data: any): Hook | ||
@@ -5,0 +4,0 @@ remove(handler: ((...args: any[]) => any)): Hook |
@@ -13,4 +13,2 @@ import './Api'; | ||
type title = string | mw.Title | ||
declare global { | ||
@@ -20,3 +18,2 @@ namespace mw { | ||
namespace html { | ||
@@ -28,8 +25,8 @@ function escape(s: string): string | ||
class log { | ||
static deprecate(obj: any, key: string, val: any, msg?: string, logName?: string): void | ||
namespace log { | ||
function deprecate(obj: any, key: string, val: any, msg?: string, logName?: string): void | ||
static error(...msg: any[]): void | ||
function error(...msg: any[]): void | ||
static warn(...msg: string[]): void | ||
function warn(...msg: string[]): void | ||
} | ||
@@ -49,1 +46,3 @@ | ||
} | ||
export {} |
@@ -1,2 +0,1 @@ | ||
declare global { | ||
@@ -29,3 +28,3 @@ namespace mw { | ||
function setData(langCode: string, dataKey: string, value?): void | ||
function setData(langCode: string, dataKey: string, value?: any): void | ||
} | ||
@@ -32,0 +31,0 @@ } |
@@ -14,4 +14,5 @@ declare global { | ||
function register(modules: string | string[], version?: string | number, dependencies?: string[], | ||
group?: string, source?: string, skip?: string): void | ||
function register(modules: string | string[], version?: string | number, | ||
dependencies?: string[], group?: string, source?: string, | ||
skip?: string): void | ||
@@ -18,0 +19,0 @@ function state(states: any): void |
@@ -27,3 +27,3 @@ declare global { | ||
function msg(key: string, ...parameters: string[]): string; | ||
function msg(key: string, ...parameters: string[]): string; | ||
} | ||
@@ -30,0 +30,0 @@ } |
@@ -11,7 +11,11 @@ declare global { | ||
namespace notification { | ||
function pause() | ||
function pause(): void | ||
function resume() | ||
function resume(): void | ||
function notify() | ||
function notify(message: string, options?: typeof notification.defaults): { | ||
pause: (() => void) | ||
resume: (() => void) | ||
close: (() => void) | ||
}; | ||
@@ -18,0 +22,0 @@ let defaults: { |
@@ -1,2 +0,2 @@ | ||
import { title } from './index'; | ||
type title = string | mw.Title | ||
@@ -75,1 +75,3 @@ declare global { | ||
} | ||
export {} |
@@ -13,3 +13,12 @@ declare global { | ||
constructor(uri: string | mw.Uri | any, options?: { | ||
constructor(uri?: string | mw.Uri | { | ||
fragment?: string; | ||
host: string; | ||
password?: string; | ||
path: string; | ||
port?: string; | ||
protocol: string; | ||
query?: any; | ||
user?: string; | ||
}, options?: { | ||
strictMode?: boolean | ||
@@ -16,0 +25,0 @@ overrideKeys?: boolean |
@@ -23,5 +23,5 @@ declare global { | ||
function getGroups(callback?: Function): JQuery.Promise<string[]> | ||
function getGroups(callback?: ((groups: string[]) => any)): JQuery.Promise<string[]> | ||
function getRights(callback?: Function): JQuery.Promise<string[]> | ||
function getRights(callback?: ((rights: string[]) => any)): JQuery.Promise<string[]> | ||
} | ||
@@ -28,0 +28,0 @@ } |
@@ -12,3 +12,3 @@ declare global { | ||
function debounce(delay: number, callback: Function): (...args: any[]) => void; | ||
function debounce(delay: number, callback: ((...args: any[]) => any)): (...args: any[]) => void; | ||
@@ -15,0 +15,0 @@ function wikiUrlencode(str: string): string; |
{ | ||
"name": "types-mediawiki", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "TypeScript definitions for MediaWiki JS interface", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
"lint": "npx dtslint --localTs node_modules/typescript/lib ." | ||
}, | ||
"repository": { | ||
@@ -16,4 +19,6 @@ "type": "git", | ||
"dependencies": { | ||
"@types/jquery": "^3.5.5" | ||
"@types/jquery": "^3.5.5", | ||
"dtslint": "^4.0.6", | ||
"typescript": "^4.1.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15955
21
412
0
3
+ Addeddtslint@^4.0.6
+ Addedtypescript@^4.1.3
+ Added@definitelytyped/header-parser@0.2.15(transitive)
+ Added@definitelytyped/typescript-versions@0.1.5(transitive)
+ Added@definitelytyped/utils@0.1.8(transitive)
+ Added@qiwi/npm-registry-client@8.9.1(transitive)
+ Added@types/node@18.19.64(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedansi-regex@2.1.15.0.1(transitive)
+ Addedansi-styles@2.2.13.2.14.3.0(transitive)
+ Addedaproba@1.2.0(transitive)
+ Addedare-we-there-yet@1.1.7(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedb4a@1.6.7(transitive)
+ Addedbabel-code-frame@6.26.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbare-events@2.5.0(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedbrace-expansion@1.1.112.0.1(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedbuiltin-modules@1.1.1(transitive)
+ Addedbuiltins@1.0.3(transitive)
+ Addedcachedir@2.4.0(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcamelcase@5.3.1(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedchalk@1.1.32.4.2(transitive)
+ Addedcharm@1.0.2(transitive)
+ Addedchownr@2.0.0(transitive)
+ Addedcliui@6.0.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcolor-convert@1.9.32.0.1(transitive)
+ Addedcolor-name@1.1.31.1.4(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcommand-exists@1.2.9(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@2.0.0(transitive)
+ Addedconsole-control-strings@1.1.0(transitive)
+ Addedcore-util-is@1.0.21.0.3(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addeddiff@3.5.0(transitive)
+ Addeddts-critic@3.3.11(transitive)
+ Addeddtslint@4.2.1(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-fifo@1.3.2(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedfs-extra@6.0.1(transitive)
+ Addedfs-minipass@2.1.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedgauge@2.7.4(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-unicode@2.0.1(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhosted-git-info@4.1.0(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-fullwidth-code-point@1.0.03.0.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisarray@1.0.02.0.5(transitive)
+ Addedisexe@3.1.1(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjs-tokens@3.0.2(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stable-stringify@1.1.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimatch@3.1.29.0.5(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedminipass@3.3.65.0.0(transitive)
+ Addedminizlib@2.1.2(transitive)
+ Addedmkdirp@0.5.61.0.4(transitive)
+ Addednormalize-package-data@3.0.3(transitive)
+ Addednpm-package-arg@8.1.5(transitive)
+ Addednpmlog@4.1.2(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpsl@1.10.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedqueue-tick@1.0.1(transitive)
+ Addedreadable-stream@2.3.83.6.2(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedrequire-main-filename@2.0.0(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedretry@0.12.0(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@5.7.26.3.17.6.3(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedslide@1.1.6(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.20(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedssri@8.0.1(transitive)
+ Addedstreamx@2.20.2(transitive)
+ Addedstring-width@1.0.24.2.3(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.16.0.1(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedsupports-color@2.0.05.5.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtar@6.2.1(transitive)
+ Addedtar-stream@3.1.7(transitive)
+ Addedtext-decoder@1.2.1(transitive)
+ Addedtmp@0.2.3(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addedtslint@5.14.0(transitive)
+ Addedtsutils@2.29.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedtypescript@4.9.5(transitive)
+ Addedundici-types@5.26.5(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
+ Addedvalidate-npm-package-name@3.0.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedwhich@4.0.0(transitive)
+ Addedwhich-module@2.0.1(transitive)
+ Addedwide-align@1.1.5(transitive)
+ Addedwrap-ansi@6.2.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedy18n@4.0.3(transitive)
+ Addedyallist@4.0.0(transitive)
+ Addedyargs@15.4.1(transitive)
+ Addedyargs-parser@18.1.3(transitive)