dsh-rewind-plugin 0.7.4 → 0.8.0-alpha.1

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.
@@ -1,32 +0,0 @@
1
- /**
2
- * Version-neutral settings-namespace reading for the host half.
3
- *
4
- * DSH rc.2 exposes a `settingsNamespace(value)` brand helper, and `settings.get`
5
- * is typed to require a branded `SettingsNamespace`. DSH 0.1.2-alpha.2 removed
6
- * that helper (the `SettingsNamespace` *type* remains) and `settings.get`
7
- * accepts the raw namespace string. This module collapses both into one runtime
8
- * call: on rc.2 the brand is a compile-time marker erased at runtime (so
9
- * `settingsNamespace(ns)` returns `ns`), on 0.1.2-alpha.2 the brand helper is
10
- * absent and the raw `ns` string is used directly. That is what lets a single
11
- * compiled host bundle link and run on both harness generations.
12
- *
13
- * @module dsh-rewind/settings-locale
14
- */
15
- /** Minimal structural face of the settings provider the host reads from. */
16
- export interface SettingsProviderLike {
17
- /**
18
- * Read one registered settings section by namespace. Accepts whatever the
19
- * running DSH generation passes: a branded `SettingsNamespace` (rc.2, brand
20
- * erased) or the raw namespace string (0.1.2-alpha.2).
21
- */
22
- get(ns: string): unknown;
23
- }
24
- /** The `settingsNamespace(ns)` brand helper, or `undefined` when removed (0.1.2-alpha.2). */
25
- export type SettingsNamespaceBrand = ((value: string) => string) | undefined;
26
- /**
27
- * Read one settings section keyed by `ns`, tolerant of the settings-namespace
28
- * brand across DSH generations. Pass the brand helper when available (the rc.2
29
- * path); it is `undefined` on 0.1.2-alpha.2, where the raw `ns` string is used
30
- * directly. Never throws: an absent section simply returns `undefined`.
31
- */
32
- export declare function readSettingsSection(provider: SettingsProviderLike, ns: string, brand: SettingsNamespaceBrand): unknown;