From 884055b9a96bc145ed4855b2aa6a340bf4d4fe62 Mon Sep 17 00:00:00 2001 From: Jingjing <8jjxie@gmail.com> Date: Thu, 11 Dec 2025 14:08:22 +0100 Subject: [PATCH] fix: run yarn spec --- apis/stardust/api-spec/spec.json | 30 ++++++++++++++++++++++++++++++ apis/stardust/types/index.d.ts | 8 ++++++++ 2 files changed, 38 insertions(+) diff --git a/apis/stardust/api-spec/spec.json b/apis/stardust/api-spec/spec.json index ec27228aa..0f4fd347c 100644 --- a/apis/stardust/api-spec/spec.json +++ b/apis/stardust/api-spec/spec.json @@ -1991,6 +1991,36 @@ } } }, + "sortSelections": { + "description": "Sort items shown in current selections toolbar.\nThe order is as follows:\n\t1. qOneAndOnlyOne\n\t2. qSortIndex", + "kind": "function", + "params": [ + { + "name": "a", + "kind": "union", + "items": [ + { + "type": "Item" + }, + { + "type": "Object" + } + ] + }, + { + "name": "b", + "kind": "union", + "items": [ + { + "type": "Item" + }, + { + "type": "Object" + } + ] + } + ] + }, "Navigation": { "stability": "experimental", "availability": { diff --git a/apis/stardust/types/index.d.ts b/apis/stardust/types/index.d.ts index c36a0d1c1..795990eea 100644 --- a/apis/stardust/types/index.d.ts +++ b/apis/stardust/types/index.d.ts @@ -632,6 +632,14 @@ declare namespace stardust { } + /** + * Sort items shown in current selections toolbar. + * The order is as follows: + * 1. qOneAndOnlyOne + * 2. qSortIndex + */ + type sortSelections = (a: Item | Object, b: Item | Object)=>void; + class Navigation implements stardust.Emitter { constructor();