chore: upgrade eslint and prettier (#2376)
* chore: upgrade eslint and prettier * chore: add restrict-template-expressions
This commit is contained in:
@@ -38,7 +38,7 @@ export function FillItemContent<C extends ItemContent = ItemContent>(content: Pa
|
||||
}
|
||||
|
||||
if (!content.appData[DefaultAppDomain][AppDataField.UserModifiedDate]) {
|
||||
content.appData[DefaultAppDomain][AppDataField.UserModifiedDate] = `${new Date()}`
|
||||
content.appData[DefaultAppDomain][AppDataField.UserModifiedDate] = new Date().toString()
|
||||
}
|
||||
|
||||
return content as C
|
||||
|
||||
@@ -7,13 +7,14 @@ import { LegacyAnonymousReference } from './LegacyAnonymousReference'
|
||||
import { LegacyTagToNoteReference } from './LegacyTagToNoteReference'
|
||||
import { Reference } from './Reference'
|
||||
import { TagToParentTagReference } from './TagToParentTagReference'
|
||||
import { AnonymousReference } from './AnonymousReference'
|
||||
|
||||
export const isLegacyAnonymousReference = (x: ContentReference): x is LegacyAnonymousReference => {
|
||||
return (x as any).reference_type === undefined
|
||||
return (x as AnonymousReference).reference_type === undefined
|
||||
}
|
||||
|
||||
export const isReference = (x: ContentReference): x is Reference => {
|
||||
return (x as any).reference_type !== undefined
|
||||
return (x as AnonymousReference).reference_type !== undefined
|
||||
}
|
||||
|
||||
export const isLegacyTagToNoteReference = (
|
||||
|
||||
Reference in New Issue
Block a user