chore: disable rules in oxlint (#9154)
This commit is contained in:
@@ -158,4 +158,4 @@ export function createI18nWrapper(getI18nFn: () => i18n) {
|
||||
* I18n['com.affine.xxx']({ arg1: 'hello' }) -> '中文 hello'
|
||||
*/
|
||||
export const I18n = createI18nWrapper(getOrCreateI18n);
|
||||
export type I18n = typeof I18n;
|
||||
export type I18nInstance = typeof I18n;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import { I18n } from '../i18next';
|
||||
import { type I18nInstance, I18n } from '../i18next';
|
||||
|
||||
export type TimeUnit =
|
||||
| 'second'
|
||||
@@ -46,7 +46,7 @@ export function i18nTime(
|
||||
time: dayjs.ConfigType,
|
||||
options: {
|
||||
// override i18n instance, default is global I18n instance
|
||||
i18n?: I18n;
|
||||
i18n?: I18nInstance;
|
||||
// override now time, default is current time
|
||||
now?: dayjs.ConfigType;
|
||||
relative?:
|
||||
|
||||
Reference in New Issue
Block a user