Skip to content

Commit 8e85890

Browse files
committed
chore(deps): add oxc-minify as a dev dependency and update pnpm lockfile
refactor: improve formatting in TypeScript interfaces for better readability
1 parent 0c0c1db commit 8e85890

5 files changed

Lines changed: 234 additions & 12 deletions

File tree

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"gray-matter": "^4.0.3",
20+
"oxc-minify": "^0.128.0",
2021
"serve-handler": "^6.1.6",
2122
"vitepress": "2.0.0-alpha.17",
2223
"wait-on": "^8.0.4"

pnpm-lock.yaml

Lines changed: 224 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/coalesce-vue-vuetify3/src/components/c-metadata-component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ export type MethodForSpec<
132132
MethodKind extends Method = Method,
133133
> = "__never" extends keyof MethodsOf<TModel> // Check if we only know that the type's method names are any strings
134134
? // If so, we have to allow any string because the exact method names aren't known.
135-
string | Method
135+
string | Method
136136
: // We know the exact method names of the type, so restrict to just those:
137137
{
138138
[K in keyof MethodsOf<TModel>]: MethodsOf<TModel>[K] extends MethodKind
139139
? // Allow the method name
140-
| (K & string)
140+
| (K & string)
141141
// Or the full method metadata object
142142
| MethodsOf<TModel>[K]
143143
: never;

src/coalesce-vue/src/metadata.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,10 @@ export interface EnumValue extends ValueMetaWithTypeDef<"enum", EnumType> {
400400
}
401401

402402
/** Represents the usage of an 'external type', i.e. an object that is not part of a relational model */
403-
export interface ObjectValue
404-
extends ValueMetaWithTypeDef<"object", ObjectType> {
403+
export interface ObjectValue extends ValueMetaWithTypeDef<
404+
"object",
405+
ObjectType
406+
> {
405407
readonly role: "value";
406408
}
407409

@@ -521,8 +523,7 @@ export interface ModelValueProperty extends PropertyBase, ModelValue {
521523
* a 1-to-1 or 1-to-many relationship in a relational model.
522524
*/
523525
export interface ModelReferenceNavigationProperty
524-
extends PropertyBase,
525-
ModelValue {
526+
extends PropertyBase, ModelValue {
526527
readonly role: "referenceNavigation";
527528
// Note: This can be a PrimaryKey in a 1-to-1 situation where the child record's
528529
// PK is the foreign key into the parent's type.
@@ -547,8 +548,7 @@ export interface BasicCollectionProperty extends PropertyBase, CollectionValue {
547548
* the foreign objects in a many-to-1 relationship in a relational model.
548549
*/
549550
export interface ModelCollectionNavigationProperty
550-
extends PropertyBase,
551-
CollectionValue {
551+
extends PropertyBase, CollectionValue {
552552
readonly role: "collectionNavigation";
553553
/**
554554
* Reference to the property on the type contained in this collection that relates

src/coalesce-vue/src/viewmodel.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ export abstract class ViewModel<
8484
TModel extends Model<ModelType> = any,
8585
TApi extends ModelApiClient<TModel> = any,
8686
TPrimaryKey extends string | number | Date = any,
87-
> implements Model<TModel["$metadata"]>
88-
{
87+
> implements Model<TModel["$metadata"]> {
8988
/** See comments on ReactiveFlags_SKIP for explanation.
9089
* @internal
9190
*/

0 commit comments

Comments
 (0)