1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00

add readonly

Co-authored-by: Nuno Góis <github@nunogois.com>
This commit is contained in:
Gastón Fournier 2024-10-15 10:25:14 +02:00 committed by GitHub
parent 3cbbefff1d
commit 52db94b0d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
import { createGauge, type Gauge } from './util/metrics';
type RestrictedRecord<T extends string[]> = Record<T[number], string>;
type RestrictedRecord<T extends readonly string[]> = Record<T[number], string>;
type Query<R> = () => Promise<R | undefined | null>;
type MapResult<R> = (result: R) => {
count: number;