@stacksjs/stx-vscode 0.2.925 → 0.2.927
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -716,23 +716,12 @@ interface StxHeadConfig {
|
|
|
716
716
|
bodyAttrs?: Record<string, string>
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
ogDescription?: string
|
|
726
|
-
ogImage?: string
|
|
727
|
-
ogUrl?: string
|
|
728
|
-
ogType?: string
|
|
729
|
-
twitterCard?: 'summary' | 'summary_large_image' | 'app' | 'player'
|
|
730
|
-
twitterTitle?: string
|
|
731
|
-
twitterDescription?: string
|
|
732
|
-
twitterImage?: string
|
|
733
|
-
robots?: string
|
|
734
|
-
canonical?: string
|
|
735
|
-
}
|
|
719
|
+
/**
|
|
720
|
+
* The runtime's own `SeoMeta`, not a copy of it. A hand-kept list of 16 fields
|
|
721
|
+
* fell behind the 35 `useSeoMeta` emits, and a page setting `ogSiteName` failed
|
|
722
|
+
* `stx typecheck` for a tag the runtime writes (#2209).
|
|
723
|
+
*/
|
|
724
|
+
type StxSeoMetaConfig = import('@stacksjs/stx').SeoMeta
|
|
736
725
|
|
|
737
726
|
declare function useHead(_config: StxHeadConfig): void
|
|
738
727
|
declare function useSeoMeta(_config: StxSeoMetaConfig): void
|
|
@@ -789,7 +778,16 @@ declare function watchMultiple(
|
|
|
789
778
|
// ============================================================================
|
|
790
779
|
|
|
791
780
|
declare function defineProps<T extends Record<string, any> = Record<string, any>>(_definitions?: any): T
|
|
792
|
-
|
|
781
|
+
/** A key given a default is never undefined afterwards: it comes back required (#2208). */
|
|
782
|
+
type StxWithDefaults<T, D> = T & { [K in keyof D & keyof T]-?: Exclude<T[K], undefined> }
|
|
783
|
+
/**
|
|
784
|
+
* A default may be the value or a factory for it. A key the props do not
|
|
785
|
+
* declare is an error, as it is for a plain object literal.
|
|
786
|
+
*/
|
|
787
|
+
declare function withDefaults<T extends Record<string, any>, D extends { [K in keyof T]?: T[K] | (() => T[K]) } = {}>(
|
|
788
|
+
_props: T,
|
|
789
|
+
_defaults: D & { [K in Exclude<keyof D, keyof T>]: never },
|
|
790
|
+
): StxWithDefaults<T, D>
|
|
793
791
|
/**
|
|
794
792
|
* Two forms, matching the runtime.
|
|
795
793
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx-vscode",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.927",
|
|
5
5
|
"description": "stx language support for VS Code extensions to embed: the hovers, completions, diagnostics, grammar, snippets, language configuration and TypeScript server plugin behind the stx extension.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|