diff --git a/types/n3/index.d.ts b/types/n3/index.d.ts index 1170d1a67b3902..9b2c10dfbd4eaa 100644 --- a/types/n3/index.d.ts +++ b/types/n3/index.d.ts @@ -395,3 +395,4 @@ export namespace Util { export function termToId(term: Term): string; export function termFromId(id: string, factory?: RDF.DataFactory): Term; +export function getRulesFromDataset(dataset: RDF.DatasetCore): Rule[]; diff --git a/types/n3/n3-tests.ts b/types/n3/n3-tests.ts index 9778b20b31b90d..6cf4a92ef52c60 100644 --- a/types/n3/n3-tests.ts +++ b/types/n3/n3-tests.ts @@ -633,5 +633,10 @@ function test_term_from_id_optional_factory() { const t1: N3.Term = N3.termFromId("http://example.org/"); } +function test_get_rules_from_dataset() { + const store = new N3.Store(); + const rules: N3.Rule[] = N3.getRulesFromDataset(store); +} + export const namedNode: ReturnType = N3.DataFactory.namedNode("hello world"); export const df: RDF.DataFactory = N3.DataFactory; diff --git a/types/telegram-web-app/index.d.ts b/types/telegram-web-app/index.d.ts index 1905ee2f0e67b6..52f51ffd0992e4 100644 --- a/types/telegram-web-app/index.d.ts +++ b/types/telegram-web-app/index.d.ts @@ -1353,6 +1353,11 @@ export interface WebAppInitData { * messages via the answerWebAppQuery method. */ query_id?: string; + /** + * A unique identifier for the chat join request query, required for + * processing the query via the method {@link https://core.telegram.org/bots/api#answerchatjoinrequestquery|answerChatJoinRequestQuery}. + */ + chat_join_request_query_id?: string; /** An object containing data about the current user. */ user?: WebAppUser; /** diff --git a/types/telegram-web-app/package.json b/types/telegram-web-app/package.json index 1f7c5245d3ab4d..3cb3169b1d2b6e 100644 --- a/types/telegram-web-app/package.json +++ b/types/telegram-web-app/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/telegram-web-app", - "version": "9.6.9999", + "version": "10.1.9999", "nonNpm": "conflict", "nonNpmDescription": "telegram-web-app", "projects": ["https://telegram.org/js/telegram-web-app.js"], diff --git a/types/telegram-web-app/telegram-web-app-tests.ts b/types/telegram-web-app/telegram-web-app-tests.ts index 1c4342f598d454..e03733dc1aa9a0 100644 --- a/types/telegram-web-app/telegram-web-app-tests.ts +++ b/types/telegram-web-app/telegram-web-app-tests.ts @@ -142,3 +142,5 @@ app.SecondaryButton.setParams({ app.requestChat("req_id", (success) => { success; // $ExpectType boolean }); + +app.initDataUnsafe.chat_join_request_query_id; // $ExpectType string | undefined