diff --git a/docs/api/README.md b/docs/api/README.md index 5d56d8352..be79424d0 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -61,6 +61,20 @@ In this case the `` will be the actual link (and will get the correct `href`) Register ``` + Type declaration for `Location`: + + ```js + declare type Location = { + name?: string; // for named routes + path?: string; + hash?: string; // Must start with a # + query?: Dictionary; + params?: Dictionary; + append?: boolean; + replace?: boolean; + } + ``` + ### replace - type: `boolean` diff --git a/docs/fr/api/README.md b/docs/fr/api/README.md index 3d1546e61..c830fa50f 100644 --- a/docs/fr/api/README.md +++ b/docs/fr/api/README.md @@ -61,6 +61,20 @@ Dans ce cas, `` sera le lien actuel (et récupèrera le bon `href`), mais la S'enregistrer ``` + Déclaration de type pour `Location`: + + ```js + declare type Location = { + name?: string; // pour les routes nommées + path?: string; + hash?: string; // Doit commencer par un # + query?: Dictionary; + params?: Dictionary; + append?: boolean; + replace?: boolean; + } + ``` + ### replace diff --git a/docs/ja/api/README.md b/docs/ja/api/README.md index 657d251fe..e5eee9164 100644 --- a/docs/ja/api/README.md +++ b/docs/ja/api/README.md @@ -59,6 +59,20 @@ sidebar: auto Register ``` + `Location` の型宣言: + + ```js + declare type Location = { + name?: string; // 名前付きルート用 + path?: string; + hash?: string; // #で始まらなければなりません + query?: Dictionary; + params?: Dictionary; + append?: boolean; + replace?: boolean; + } + ``` + ### replace - 型: `boolean` diff --git a/docs/kr/api/README.md b/docs/kr/api/README.md index b5b0e637b..5e4fe6628 100644 --- a/docs/kr/api/README.md +++ b/docs/kr/api/README.md @@ -48,6 +48,20 @@ sidebar: auto Register ``` + Type declaration for `Location`: + + ```js + declare type Location = { + name?: string; // for named routes + path?: string; + hash?: string; // Must start with a # + query?: Dictionary; + params?: Dictionary; + append?: boolean; + replace?: boolean; + } + ``` + ### replace - 자료형: `boolean` diff --git a/docs/ru/api/README.md b/docs/ru/api/README.md index ac65b6cd5..a696eb2f9 100644 --- a/docs/ru/api/README.md +++ b/docs/ru/api/README.md @@ -61,6 +61,20 @@ sidebar: auto Register ``` + Декларация типа для `Location`: + + ```js + declare type Location = { + name?: string; // для именованных маршрутов + path?: string; + hash?: string; // Должен начинаться с # + query?: Dictionary; + params?: Dictionary; + append?: boolean; + replace?: boolean; + } + ``` + ### replace - тип: `boolean` diff --git a/docs/zh/api/README.md b/docs/zh/api/README.md index 484d13c0a..1f81412b4 100644 --- a/docs/zh/api/README.md +++ b/docs/zh/api/README.md @@ -62,6 +62,20 @@ sidebar: auto Register ``` + `Location` 的类型定义: + + ```js + declare type Location = { + name?: string; // 命名路由 + path?: string; + hash?: string; // 必须以#开头 + query?: Dictionary; + params?: Dictionary; + append?: boolean; + replace?: boolean; + } + ``` + ### replace - 类型: `boolean`