We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb72bd9 commit 4f039adCopy full SHA for 4f039ad
libs/core/src/lib/declarations/index-signature.d.ts
@@ -0,0 +1,15 @@
1
+/**
2
+ * Gets the index signature of a type.
3
+ *
4
+ * @example
5
+ ```typescript
6
+interface Options {
7
+ key: string;
8
+ title: string;
9
+ [dataProperty: string]: string | number;
10
+}
11
+
12
+type IndexOfOptions = IndexSignature<Options>; // { [x: string]: string | number; [x: number]: string | number; }
13
+```
14
+ */
15
+export type IndexSignature<T> = Pick<T, keyof T>;
libs/core/src/lib/declarations/public-api.d.ts
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+export * from './index-signature';
export * from './known-keys';
export * from './omit';
export * from './StringMap';
0 commit comments