mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat: bump more deps (#14079)
This commit is contained in:
@@ -21,8 +21,7 @@ type FnValueType<
|
||||
export class FnTypeInstance<
|
||||
Args extends readonly TypeInstance[] = readonly TypeInstance[],
|
||||
Return extends TypeInstance = TypeInstance,
|
||||
> implements TypeInstance
|
||||
{
|
||||
> implements TypeInstance {
|
||||
_validate = fnSchema;
|
||||
|
||||
readonly _valueType = undefined as never as FnValueType<Args, Return>;
|
||||
@@ -55,7 +54,6 @@ export class FnTypeInstance<
|
||||
unify(ctx: TypeVarContext, template: FnTypeInstance, unify: Unify): boolean {
|
||||
const newCtx = { ...ctx };
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
||||
for (let i = 0; i < template.args.length; i++) {
|
||||
const arg = template.args[i];
|
||||
const realArg = this.args[i];
|
||||
@@ -79,9 +77,9 @@ export class FnTypeInstance<
|
||||
|
||||
const fnSchema = Zod.function();
|
||||
|
||||
export class ArrayTypeInstance<Element extends TypeInstance = TypeInstance>
|
||||
implements TypeInstance
|
||||
{
|
||||
export class ArrayTypeInstance<
|
||||
Element extends TypeInstance = TypeInstance,
|
||||
> implements TypeInstance {
|
||||
readonly _validate;
|
||||
|
||||
readonly _valueType = undefined as never as ValueTypeOf<Element>[];
|
||||
|
||||
@@ -14,8 +14,7 @@ export class DTInstance<
|
||||
Name extends string = string,
|
||||
Data = unknown,
|
||||
ValueSchema extends Zod.ZodType = Zod.ZodType,
|
||||
> implements TypeInstance
|
||||
{
|
||||
> implements TypeInstance {
|
||||
readonly _valueType = undefined as never as Zod.TypeOf<ValueSchema>;
|
||||
|
||||
constructor(
|
||||
@@ -47,8 +46,7 @@ export class DataType<
|
||||
Name extends string = string,
|
||||
DataSchema extends Zod.ZodType = Zod.ZodType,
|
||||
ValueSchema extends Zod.ZodType = Zod.ZodType,
|
||||
> implements TypeDefinition
|
||||
{
|
||||
> implements TypeDefinition {
|
||||
constructor(
|
||||
private readonly name: Name,
|
||||
_dataSchema: DataSchema,
|
||||
|
||||
@@ -17,9 +17,9 @@ export class TypeVarDefinitionInstance<
|
||||
) {}
|
||||
}
|
||||
|
||||
export class TypeVarReferenceInstance<Name extends string = string>
|
||||
implements TypeInstance
|
||||
{
|
||||
export class TypeVarReferenceInstance<
|
||||
Name extends string = string,
|
||||
> implements TypeInstance {
|
||||
readonly _validate = unknownSchema;
|
||||
|
||||
readonly _valueType = undefined as unknown;
|
||||
|
||||
@@ -8,10 +8,10 @@ import type { Cell } from '../view-manager/cell.js';
|
||||
import type { CellRenderProps, DataViewCellLifeCycle } from './manager.js';
|
||||
|
||||
export abstract class BaseCellRenderer<
|
||||
RawValue = unknown,
|
||||
JsonValue = unknown,
|
||||
Data extends Record<string, unknown> = Record<string, unknown>,
|
||||
>
|
||||
RawValue = unknown,
|
||||
JsonValue = unknown,
|
||||
Data extends Record<string, unknown> = Record<string, unknown>,
|
||||
>
|
||||
extends SignalWatcher(WithDisposable(ShadowlessElement))
|
||||
implements DataViewCellLifeCycle, CellRenderProps<Data, RawValue, JsonValue>
|
||||
{
|
||||
|
||||
@@ -29,8 +29,7 @@ export class CellBase<
|
||||
RawValue = unknown,
|
||||
JsonValue = unknown,
|
||||
Data extends Record<string, unknown> = Record<string, unknown>,
|
||||
> implements Cell<RawValue, JsonValue, Data>
|
||||
{
|
||||
> implements Cell<RawValue, JsonValue, Data> {
|
||||
get dataSource() {
|
||||
return this.view.manager.dataSource;
|
||||
}
|
||||
|
||||
@@ -68,8 +68,7 @@ export abstract class PropertyBase<
|
||||
RawValue = unknown,
|
||||
JsonValue = unknown,
|
||||
Data extends Record<string, unknown> = Record<string, unknown>,
|
||||
> implements Property<RawValue, JsonValue, Data>
|
||||
{
|
||||
> implements Property<RawValue, JsonValue, Data> {
|
||||
meta$ = computed(() => {
|
||||
return this.dataSource.propertyMetaGet(this.type$.value);
|
||||
});
|
||||
|
||||
@@ -78,8 +78,7 @@ export interface SingleView {
|
||||
|
||||
export abstract class SingleViewBase<
|
||||
ViewData extends DataViewDataType = DataViewDataType,
|
||||
> implements SingleView
|
||||
{
|
||||
> implements SingleView {
|
||||
private readonly searchString = signal('');
|
||||
|
||||
private readonly traitMap = new Map<symbol, unknown>();
|
||||
|
||||
@@ -6,8 +6,8 @@ import type { DataViewUILogicBase } from '../view/data-view-base.js';
|
||||
import type { DataViewWidgetProps } from './types.js';
|
||||
|
||||
export class WidgetBase<
|
||||
ViewLogic extends DataViewUILogicBase = DataViewUILogicBase,
|
||||
>
|
||||
ViewLogic extends DataViewUILogicBase = DataViewUILogicBase,
|
||||
>
|
||||
extends SignalWatcher(WithDisposable(ShadowlessElement))
|
||||
implements DataViewWidgetProps<ViewLogic>
|
||||
{
|
||||
|
||||
@@ -490,8 +490,11 @@ export interface GridGroupData {
|
||||
rows: string[];
|
||||
}
|
||||
|
||||
export interface GridVirtualScrollOptions<GroupData, RowData, CellData>
|
||||
extends VirtualScrollOptions {
|
||||
export interface GridVirtualScrollOptions<
|
||||
GroupData,
|
||||
RowData,
|
||||
CellData,
|
||||
> extends VirtualScrollOptions {
|
||||
initGroupData: (group: GridGroup<GroupData, RowData, CellData>) => GroupData;
|
||||
initRowData: (row: GridRow<GroupData, RowData, CellData>) => RowData;
|
||||
initCellData: (cell: GridCell<GroupData, RowData, CellData>) => CellData;
|
||||
|
||||
Reference in New Issue
Block a user