frontend-plugin-api: remove helper types from top-level API surface
Remove `ResolvedExtensionInput` and `ExtensionDataRefToValue` from the public API to reduce top-level API clutter. These types were internal plumbing not needed by plugin authors. `ResolvedExtensionInput` is now a file-local type only used by `ResolvedExtensionInputs`. `ExtensionDataRefToValue` is no longer re-exported from the barrel. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -17,11 +17,10 @@
|
||||
import {
|
||||
AppNode,
|
||||
Extension,
|
||||
ExtensionDataContainer,
|
||||
ExtensionDataRef,
|
||||
ExtensionDefinition,
|
||||
ExtensionInput,
|
||||
PortableSchema,
|
||||
ResolvedExtensionInput,
|
||||
createExtension,
|
||||
createExtensionBlueprint,
|
||||
createExtensionDataRef,
|
||||
@@ -146,8 +145,8 @@ function mirrorInputs(ctx: {
|
||||
inputs: {
|
||||
[name in string]:
|
||||
| undefined
|
||||
| ResolvedExtensionInput<ExtensionInput>
|
||||
| Array<ResolvedExtensionInput<ExtensionInput>>;
|
||||
| ({ node: AppNode } & ExtensionDataContainer<ExtensionDataRef>)
|
||||
| Array<{ node: AppNode } & ExtensionDataContainer<ExtensionDataRef>>;
|
||||
};
|
||||
}) {
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user