-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
- Loading branch information
There are no files selected for viewing
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.