From b951fdf07c52e0ee1ada3547df7c78838443265a Mon Sep 17 00:00:00 2001 From: Antony Rizzitelli Date: Fri, 13 Nov 2026 21:40:31 +0000 Subject: [PATCH] refactor(metadata)!: remove the RowFields alias of StoredRow --- src/internal/field-types.ts | 7 ------- src/metadata.ts | 1 - src/tests/index/consumer_declarations.test.ts | 5 ++--- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/internal/field-types.ts b/src/internal/field-types.ts index a8d7fb6..60e295b 100644 --- a/src/internal/field-types.ts +++ b/src/internal/field-types.ts @@ -63,13 +63,6 @@ export interface StoredRow { [field: string]: StoredValue; } -/** - * The name {@link StoredRow} had before 0.7.0. - * - * @deprecated Use {@link StoredRow}. - */ -export type RowFields = StoredRow; - /** Parse outcome accepting the field value, carrying the value to write. */ export interface FieldParseSuccess { success: true; diff --git a/src/metadata.ts b/src/metadata.ts index 0f64406..a81d642 100644 --- a/src/metadata.ts +++ b/src/metadata.ts @@ -59,7 +59,6 @@ export type { FieldValidationResult, FieldValue, FieldValues, - RowFields, StoredRow, ForeignOptions, FieldValidator, diff --git a/src/tests/index/consumer_declarations.test.ts b/src/tests/index/consumer_declarations.test.ts index 26f9a9a..863c3ac 100644 --- a/src/tests/index/consumer_declarations.test.ts +++ b/src/tests/index/consumer_declarations.test.ts @@ -11,7 +11,7 @@ import { Table } from "@antelopejs/interface-database-decorators"; import { LocalizationModifier } from "@antelopejs/interface-database-decorators/modifiers/localization"; import { DataController, DefaultRoutes, RegisterDataController } from "@antelopejs/interface-data-api"; import { Query, Validation } from "@antelopejs/interface-data-api/components"; -import { Access, AccessMode, ModifierKey, type RowFields, type StoredRow } from "@antelopejs/interface-data-api/metadata"; +import { Access, AccessMode, ModifierKey, type StoredRow } from "@antelopejs/interface-data-api/metadata"; class Article extends Table { declare title: string; @@ -29,8 +29,7 @@ export class ArticleAPI extends DataController(Article, DefaultRoutes.All, Contr export const read: typeof Query.ReadProperties = Query.ReadProperties; export const clear: typeof Validation.ClearInternal = Validation.ClearInternal; export const row: StoredRow = { title: "a" }; -export const legacyRow: RowFields = row; -export const legacyGet: typeof DefaultRoutes.Get extends { func: (...args: never[]) => Promise | RowFields } ? true : false = true; +export const get: typeof DefaultRoutes.Get extends { func: (...args: never[]) => Promise | StoredRow } ? true : false = true; `; /** The diagnostics of a module that imports this package's built declarations, library declarations checked too. */