create-guren-app 1.15.1 → 1.15.2
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.
package/package.json
CHANGED
|
@@ -215,7 +215,8 @@ function isSameOrigin(url: string): boolean {
|
|
|
215
215
|
* `output` schema type the response: `json()` on the returned `Response`
|
|
216
216
|
* resolves to that schema's parsed shape. A `resource` response hint types
|
|
217
217
|
* `json()` the same way from the `Data` types extracted out of
|
|
218
|
-
* app/Http/Resources
|
|
218
|
+
* app/Http/Resources, at the project root and under modules/* — declared, not
|
|
219
|
+
* validated: the server never checks the
|
|
219
220
|
* payload against it at runtime. Without either, `json()` resolves to
|
|
220
221
|
* `unknown` — validate before trusting it. Either way the typed shape
|
|
221
222
|
* describes the success body only: error statuses carry their own (a 422
|
|
@@ -142,7 +142,8 @@ function isSameOrigin(url: string): boolean {
|
|
|
142
142
|
* `output` schema type the response: `json()` on the returned `Response`
|
|
143
143
|
* resolves to that schema's parsed shape. A `resource` response hint types
|
|
144
144
|
* `json()` the same way from the `Data` types extracted out of
|
|
145
|
-
* app/Http/Resources
|
|
145
|
+
* app/Http/Resources, at the project root and under modules/* — declared, not
|
|
146
|
+
* validated: the server never checks the
|
|
146
147
|
* payload against it at runtime. Without either, `json()` resolves to
|
|
147
148
|
* `unknown` — validate before trusting it. Either way the typed shape
|
|
148
149
|
* describes the success body only: error statuses carry their own (a 422
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated from lang/ (locales: en) — DO NOT EDIT
|
|
2
|
+
// Run `guren codegen` to regenerate.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Every translation key present in at least one locale. Missing-per-locale
|
|
6
|
+
* keys are reported by `guren check --i18n`, not here.
|
|
7
|
+
*/
|
|
8
|
+
export type TranslationKey =
|
|
9
|
+
| 'messages.welcome'
|
|
10
|
+
|
|
11
|
+
// Type this app's translation helpers via declaration merging:
|
|
12
|
+
// `this.t()` / `this.tc()` in controllers and `useTranslation()` in pages
|
|
13
|
+
// autocomplete and reject unknown keys. Delete lang/ and regenerate to
|
|
14
|
+
// return them to plain strings.
|
|
15
|
+
declare module '@guren/core' {
|
|
16
|
+
interface GurenTranslationKeys {
|
|
17
|
+
keys: TranslationKey
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare module '@guren/inertia-client' {
|
|
22
|
+
interface GurenTranslationKeys {
|
|
23
|
+
keys: TranslationKey
|
|
24
|
+
}
|
|
25
|
+
}
|