Skip to content

Commit

Permalink
dist: updated
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlath committed Mar 15, 2024
1 parent cc7bc9a commit 9c0a6c5
Show file tree
Hide file tree
Showing 396 changed files with 57,430 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/scripts/compare_datatypes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ts-node
export {};
//# sourceMappingURL=compare_datatypes.d.ts.map
1 change: 1 addition & 0 deletions dist/scripts/compare_datatypes.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions dist/scripts/compare_datatypes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/scripts/compare_datatypes.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/scripts/update_wikimedia_constants.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ts-node
export {};
//# sourceMappingURL=update_wikimedia_constants.d.ts.map
1 change: 1 addition & 0 deletions dist/scripts/update_wikimedia_constants.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions dist/scripts/update_wikimedia_constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/scripts/update_wikimedia_constants.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions dist/src/helpers/helpers.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { EntityId, EntityPageTitle, Guid, GuidAltSyntax, NonNestedEntityId, NumericId, PropertyClaimsId } from '../types/entity.js';
import type { Url } from '../utils/build_url.js';
export declare const isNumericId: (id: string) => id is `${number}`;
export declare const isEntityId: (id: string) => id is EntityId;
export declare const isEntitySchemaId: (id: string) => id is `E${number}`;
export declare const isItemId: (id: string) => id is `Q${number}`;
export declare const isPropertyId: (id: string) => id is `P${number}`;
export declare const isLexemeId: (id: string) => id is `L${number}`;
export declare const isFormId: (id: string) => id is `L${number}-F${number}`;
export declare const isSenseId: (id: string) => id is `L${number}-S${number}`;
export declare const isMediaInfoId: (id: string) => id is `M${number}`;
export declare const isGuid: (id: string) => id is `Q${number}$${string}` | `P${number}$${string}` | `L${number}$${string}` | `M${number}$${string}` | `L${number}-F${number}$${string}` | `L${number}-S${number}$${string}` | `q${Lowercase<`${number}`>}$${string}` | `p${Lowercase<`${number}`>}$${string}` | `l${Lowercase<`${number}`>}$${string}` | `m${Lowercase<`${number}`>}$${string}` | `l${Lowercase<`${number}`>}-f${Lowercase<`${number}`>}$${string}` | `l${Lowercase<`${number}`>}-s${Lowercase<`${number}`>}$${string}`;
export declare const isHash: (id: string) => id is string;
export declare const isRevisionId: (id: string) => id is `${number}`;
export declare const isNonNestedEntityId: (id: string) => id is NonNestedEntityId;
export declare function isPropertyClaimsId(id: string): id is PropertyClaimsId;
export declare function isEntityPageTitle(title: string): title is EntityPageTitle;
export declare function getNumericId(id: string): NumericId;
export declare function getImageUrl(filename: string, width?: number): Url;
export declare function getEntityIdFromGuid(guid: Guid | GuidAltSyntax): EntityId;
//# sourceMappingURL=helpers.d.ts.map
1 change: 1 addition & 0 deletions dist/src/helpers/helpers.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions dist/src/helpers/helpers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/helpers/helpers.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions dist/src/helpers/parse_responses.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { Entities, SimplifiedEntities } from '../types/entity.js';
export interface WbGetEntitiesResponse {
entities: Entities;
success: number;
}
export type Title = string;
export type Titles = string[];
export interface CirrusSearchResult {
title: Title;
}
export interface CirrusSearchPagesResponse {
query: {
search: CirrusSearchResult[];
};
}
export declare function entities(res: WbGetEntitiesResponse): SimplifiedEntities;
export declare function pagesTitles(res: CirrusSearchPagesResponse): Titles;
//# sourceMappingURL=parse_responses.d.ts.map
1 change: 1 addition & 0 deletions dist/src/helpers/parse_responses.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions dist/src/helpers/parse_responses.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/helpers/parse_responses.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9c0a6c5

Please sign in to comment.