fix(content-flagging): update TypeScript definitions and fix TypeScript version in tsconfig.json

This commit is contained in:
QuinnFTW 2026-01-10 04:19:29 -08:00
parent 6f98ccba0d
commit 64d896cfc8
2 changed files with 17 additions and 23 deletions

View file

@ -11,32 +11,32 @@ export type {
ContentFlag,
ContentFlagResult,
ContentFlaggingConfig,
} from './types'
} from './types.js'
export { DEFAULT_FLAGGING_CONFIG, SEVERITY_SCORES } from './types'
export { DEFAULT_FLAGGING_CONFIG, SEVERITY_SCORES } from './types.js'
// Service
export {
ContentFlaggingService,
getContentFlaggingService,
flagContent,
} from './ContentFlaggingService'
} from './ContentFlaggingService.js'
// React Hooks
export type { UseContentFlaggingOptions, UseContentFlaggingReturn } from './useContentFlagging'
export { useContentFlagging, useContentScore } from './useContentFlagging'
export type { UseContentFlaggingOptions, UseContentFlaggingReturn } from './useContentFlagging.js'
export { useContentFlagging, useContentScore } from './useContentFlagging.js'
export type {
AutosaveStatus,
AutosaveToastConfig,
UseAutosaveWithFlaggingOptions,
UseAutosaveWithFlaggingReturn,
} from './useAutosaveWithFlagging'
export { useAutosaveWithFlagging } from './useAutosaveWithFlagging'
} from './useAutosaveWithFlagging.js'
export { useAutosaveWithFlagging } from './useAutosaveWithFlagging.js'
// UI Components
export type { FlagDetailsProps, FlagScoreIndicatorProps } from './FlagScoreIndicator'
export { FlagDetails, FlagScoreIndicator } from './FlagScoreIndicator'
export type { FlagDetailsProps, FlagScoreIndicatorProps } from './FlagScoreIndicator.js'
export { FlagDetails, FlagScoreIndicator } from './FlagScoreIndicator.js'
export type { ContentFlaggedFieldProps } from './ContentFlaggedField'
export { ContentFlaggedField } from './ContentFlaggedField'
export type { ContentFlaggedFieldProps } from './ContentFlaggedField.js'
export { ContentFlaggedField } from './ContentFlaggedField.js'

View file

@ -1,12 +1,11 @@
{
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"moduleResolution": "bundler",
"target": "ES2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"jsx": "react-jsx",
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
@ -17,11 +16,6 @@
"declaration": true,
"declarationMap": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"dist"
]
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}