@discourse/types 0.0.2 → 2026.1.0-a5a0839

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/declarations/admin/components/dashboard-new-features.d.ts.map +1 -1
  2. package/declarations/app/components/modal/spreadsheet-editor.d.ts.map +1 -1
  3. package/declarations/app/components/reviewable-refresh/item.d.ts.map +1 -1
  4. package/declarations/app/components/topic-list/bulk-select-checkbox.d.ts +3 -0
  5. package/declarations/app/components/topic-list/bulk-select-checkbox.d.ts.map +1 -0
  6. package/declarations/app/components/topic-list/item/bulk-select-cell.d.ts.map +1 -1
  7. package/declarations/app/components/topic-list/item/topic-cell.d.ts +0 -2
  8. package/declarations/app/components/topic-list/item/topic-cell.d.ts.map +1 -1
  9. package/declarations/app/components/topic-list/item.d.ts.map +1 -1
  10. package/declarations/app/lib/render-tags.d.ts.map +1 -1
  11. package/declarations/tests/helpers/qunit-helpers.d.ts +2 -1
  12. package/declarations/tests/helpers/qunit-helpers.d.ts.map +1 -1
  13. package/declarations/tests/helpers/site-settings.d.ts.map +1 -1
  14. package/declarations/tsconfig.tsbuildinfo +1 -1
  15. package/external-types/@types__jquery/JQuery.d.ts +13440 -0
  16. package/external-types/@types__jquery/JQueryStatic.d.ts +13944 -0
  17. package/external-types/@types__jquery/LICENSE +21 -0
  18. package/external-types/@types__jquery/dist/jquery.slim.d.ts +3 -0
  19. package/external-types/@types__jquery/index.d.ts +7 -0
  20. package/external-types/@types__jquery/legacy.d.ts +204 -0
  21. package/external-types/@types__jquery/misc.d.ts +7388 -0
  22. package/external-types/@types__jquery/package.json +133 -0
  23. package/external-types/@types__sinon/LICENSE +21 -0
  24. package/external-types/@types__sinon/index.d.ts +1468 -0
  25. package/external-types/@types__sinon/package.json +63 -0
  26. package/external-types/pretender/LICENSE +19 -0
  27. package/external-types/pretender/index.d.ts +60 -0
  28. package/external-types/pretender/package.json +75 -0
  29. package/external-types.d.ts +3 -0
  30. package/package.json +1 -1
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@types/sinon",
3
+ "version": "21.0.0",
4
+ "description": "TypeScript definitions for sinon",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "William Sears",
10
+ "githubUsername": "mrbigdog2u",
11
+ "url": "https://github.com/mrbigdog2u"
12
+ },
13
+ {
14
+ "name": "Nico Jansen",
15
+ "githubUsername": "nicojs",
16
+ "url": "https://github.com/nicojs"
17
+ },
18
+ {
19
+ "name": "James Garbutt",
20
+ "githubUsername": "43081j",
21
+ "url": "https://github.com/43081j"
22
+ },
23
+ {
24
+ "name": "Greg Jednaszewski",
25
+ "githubUsername": "gjednaszewski",
26
+ "url": "https://github.com/gjednaszewski"
27
+ },
28
+ {
29
+ "name": "John Wood",
30
+ "githubUsername": "johnjesse",
31
+ "url": "https://github.com/johnjesse"
32
+ },
33
+ {
34
+ "name": "Alec Flett",
35
+ "githubUsername": "alecf",
36
+ "url": "https://github.com/alecf"
37
+ },
38
+ {
39
+ "name": "Simon Schick",
40
+ "githubUsername": "SimonSchick",
41
+ "url": "https://github.com/SimonSchick"
42
+ },
43
+ {
44
+ "name": "Mathias Schreck",
45
+ "githubUsername": "lo1tuma",
46
+ "url": "https://github.com/lo1tuma"
47
+ }
48
+ ],
49
+ "main": "",
50
+ "types": "index.d.ts",
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
54
+ "directory": "types/sinon"
55
+ },
56
+ "scripts": {},
57
+ "dependencies": {
58
+ "@types/sinonjs__fake-timers": "*"
59
+ },
60
+ "peerDependencies": {},
61
+ "typesPublisherContentHash": "23b176291f2b882b5f347933bf8e1105db9cd292e799baa0f26b11b878e60799",
62
+ "typeScriptVersion": "5.2"
63
+ }
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2015 Trek Glowacki
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,60 @@
1
+ declare module 'pretender' {
2
+ import FakeXMLHttpRequest from 'fake-xml-http-request';
3
+ import { Params, QueryParams } from 'route-recognizer';
4
+
5
+ type SetupCallback = (this: Server) => void;
6
+ interface SetupConfig {
7
+ forcePassthrough: boolean;
8
+ }
9
+ export type Config = SetupCallback | SetupConfig;
10
+ export class Server {
11
+ public passthrough: ResponseHandler;
12
+
13
+ constructor(config?: Config);
14
+ // HTTP request verbs
15
+ public get: RequestHandler;
16
+ public put: RequestHandler;
17
+ public post: RequestHandler;
18
+ public patch: RequestHandler;
19
+ public delete: RequestHandler;
20
+ public options: RequestHandler;
21
+ public head: RequestHandler;
22
+
23
+ public shutdown(): void;
24
+
25
+ public map(maps: Function): void;
26
+
27
+ public handledRequest(verb: string, path: string, request: FakeXMLHttpRequest & ExtraRequestData): void;
28
+ public unhandledRequest(verb: string, path: string, request: FakeXMLHttpRequest & ExtraRequestData): void;
29
+ public passthroughRequest(verb: string, path: string, request: FakeXMLHttpRequest & ExtraRequestData): void;
30
+ public erroredRequest(verb: string, path: string, request: FakeXMLHttpRequest & ExtraRequestData, error: Error): void;
31
+
32
+ public prepareBody(body: string): string;
33
+ public prepareHeaders(headers: {[k: string]: string}): {[k: string]: string};
34
+ }
35
+
36
+ export type RequestHandler = (
37
+ urlExpression: string,
38
+ response: ResponseHandler,
39
+ asyncOrDelay?: boolean | number
40
+ ) => ResponseHandlerInstance;
41
+
42
+ export type ResponseData = [number, { [k: string]: string }, string];
43
+ interface ExtraRequestData {
44
+ params: Params;
45
+ queryParams: QueryParams;
46
+ }
47
+ export type ResponseHandler = {
48
+ (request: FakeXMLHttpRequest & ExtraRequestData):
49
+ | ResponseData
50
+ | PromiseLike<ResponseData>;
51
+ };
52
+
53
+ export type ResponseHandlerInstance = ResponseHandler & {
54
+ async: boolean;
55
+ numberOfCalls: number;
56
+ }
57
+
58
+ export default Server;
59
+
60
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "pretender",
3
+ "version": "3.4.7",
4
+ "main": "./dist/pretender.js",
5
+ "module": "./dist/pretender.es.js",
6
+ "types": "index.d.ts",
7
+ "description": "Pretender is a mock server library for XMLHttpRequest and Fetch, that comes with an express/sinatra style syntax for defining routes and their handlers.",
8
+ "license": "MIT",
9
+ "scripts": {
10
+ "release": "release-it",
11
+ "prepublishOnly": "npm run build && npm run tests-only",
12
+ "build": "rollup --config",
13
+ "test": "npm run eslint && npm run tests-only",
14
+ "test-ci": "npm run build && npm run eslint && npm run tests-only-ci",
15
+ "tests-only": "karma start --single-run",
16
+ "tests-only-ci": "karma start --single-run --browsers ChromeHeadlessNoSandbox",
17
+ "eslint": "eslint src/**/*.ts test",
18
+ "test:server": "karma start --no-single-run"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/pretenderjs/pretender.git"
23
+ },
24
+ "publishConfig": {
25
+ "registry": "https://registry.npmjs.org/"
26
+ },
27
+ "devDependencies": {
28
+ "@rollup/plugin-commonjs": "^11.1.0",
29
+ "@rollup/plugin-node-resolve": "^7.1.3",
30
+ "abortcontroller-polyfill": "^1.1.9",
31
+ "coveralls": "^3.1.0",
32
+ "es6-promise": "^4.0.5",
33
+ "eslint": "^5.12.0",
34
+ "karma": "^5.0.6",
35
+ "karma-chrome-launcher": "^3.1.0",
36
+ "karma-coverage": "^2.0.2",
37
+ "karma-jquery": "^0.2.4",
38
+ "karma-qunit": "^4.1.1",
39
+ "karma-sinon": "^1.0.5",
40
+ "qunit": "^2.10.0",
41
+ "release-it": "^13.6.0",
42
+ "release-it-lerna-changelog": "^2.3.0",
43
+ "rollup": "^2.10.2",
44
+ "rollup-plugin-typescript": "^1.0.0",
45
+ "sinon": "^9.0.2",
46
+ "tslib": "^1.9.3",
47
+ "typescript": "~3.1.1",
48
+ "typescript-eslint-parser": "^21.0.2",
49
+ "url-parse": "^1.5.3",
50
+ "whatwg-fetch": "^3.6.2"
51
+ },
52
+ "dependencies": {
53
+ "fake-xml-http-request": "^2.1.2",
54
+ "route-recognizer": "^0.3.3"
55
+ },
56
+ "files": [
57
+ "dist",
58
+ "index.d.ts"
59
+ ],
60
+ "jspm": {
61
+ "shim": {
62
+ "pretender": {
63
+ "deps": [
64
+ "route-recognizer",
65
+ "fake-xml-http-request"
66
+ ],
67
+ "exports": "Pretender"
68
+ }
69
+ }
70
+ },
71
+ "volta": {
72
+ "node": "16.5.0",
73
+ "yarn": "1.22.4"
74
+ }
75
+ }
@@ -93,10 +93,13 @@
93
93
  /// <reference path="./external-types/@glint__ember-tsc/lib/config/loader.d.ts" />
94
94
  /// <reference path="./external-types/@glint__ember-tsc/lib/cli/run-volar-tsc.d.ts" />
95
95
  /// <reference path="./external-types/@glint__template/-private/integration.d.ts" />
96
+ /// <reference path="./external-types/@types__jquery/index.d.ts" />
96
97
  /// <reference path="./external-types/@types__qunit/index.d.ts" />
97
98
  /// <reference path="./external-types/@types__rsvp/index.d.ts" />
99
+ /// <reference path="./external-types/@types__sinon/index.d.ts" />
98
100
  /// <reference path="./external-types/ember-modifier/declarations/index.d.ts" />
99
101
  /// <reference path="./external-types/ember-qunit/types/index.d.ts" />
100
102
  /// <reference path="./external-types/ember-qunit/types/local-types.d.ts" />
101
103
  /// <reference path="./external-types/ember-qunit/types/test-loader.d.ts" />
102
104
  /// <reference path="./external-types/ember-source/types/stable/index.d.ts" />
105
+ /// <reference path="./external-types/pretender/index.d.ts" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discourse/types",
3
- "version": "0.0.2",
3
+ "version": "2026.1.0-a5a0839",
4
4
  "description": "Types only",
5
5
  "license": "GPL-2.0-only",
6
6
  "author": "Discourse",