mirror of
https://github.com/sindresorhus/type-fest.git
synced 2025-12-08 19:25:05 +00:00
10 lines
182 B
TypeScript
10 lines
182 B
TypeScript
import {expectType} from 'tsd';
|
|
import type {StringKeyOf} from '../index';
|
|
|
|
declare const foo: StringKeyOf<{
|
|
1: number;
|
|
stringKey: string;
|
|
}>;
|
|
|
|
expectType<'1' | 'stringKey'>(foo);
|