mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
refactor(editor): enable the noUncheckedIndexedAccess rule for the block-database package (#9691)
close: BS-2269
This commit is contained in:
@@ -31,7 +31,7 @@ type Create<
|
||||
};
|
||||
export type PropertyModel<
|
||||
Type extends string = string,
|
||||
PropertyData extends Record<string, unknown> = Record<string, never>,
|
||||
PropertyData extends Record<string, unknown> = Record<string, unknown>,
|
||||
CellData = unknown,
|
||||
> = {
|
||||
type: Type;
|
||||
|
||||
@@ -38,12 +38,7 @@ export type PropertyConfig<
|
||||
value?: Value;
|
||||
}>
|
||||
) => unknown[];
|
||||
cellToString: (
|
||||
config: WithCommonPropertyConfig<{
|
||||
value: Value;
|
||||
data: Data;
|
||||
}>
|
||||
) => string;
|
||||
cellToString: (config: { value: Value; data: Data }) => string;
|
||||
cellFromString: (
|
||||
config: WithCommonPropertyConfig<{
|
||||
value: string;
|
||||
|
||||
@@ -286,7 +286,6 @@ export abstract class SingleViewBase<
|
||||
this.dataSource.propertyMetaGet(type).config.cellToString({
|
||||
value: this.dataSource.cellValueGet(rowId, propertyId),
|
||||
data: this.propertyDataGet(propertyId),
|
||||
dataSource: this.dataSource,
|
||||
}) ?? ''
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user