Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AddPrefixToKeys

Returns a new map where every key is prefixed with the outer key appended to a dot.

type AddPrefixToKeys<Prefix extends string, T extends Record<string, unknown>> = [K in keyof T & stringin keyof `${Prefix}.${K}`]+?: string extends K ? any : T[K];

§Type Parameters

§
Prefix extends string
[src]
§
T extends Record<string, unknown>
[src]

§Type

§
[K in keyof T & stringin keyof `${Prefix}.${K}`]+?: string extends K ? any : T[K]
[src]