From 119898fcdb648600db340629be6cc1a70a3969f8 Mon Sep 17 00:00:00 2001 From: Liam Potter Date: Sat, 29 Jul 2023 12:59:09 +0100 Subject: [PATCH] sort types for stable diffs --- src/dts-content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dts-content.ts b/src/dts-content.ts index 80c01498..980c58f6 100644 --- a/src/dts-content.ts +++ b/src/dts-content.ts @@ -144,7 +144,8 @@ export class DtsContent { const result = this.rawTokenList .map(k => convertKey(k)) - .map(k => (!this.namedExports ? 'readonly "' + k + '": string;' : 'const ' + k + ': string;')); + .map(k => (!this.namedExports ? 'readonly "' + k + '": string;' : 'const ' + k + ': string;')) + .sort(); return result; }