16 lines
322 B
TypeScript
16 lines
322 B
TypeScript
import type {
|
|
ExplainGuideStop
|
|
} from './museum'
|
|
|
|
export interface ExplainDetailTarget {
|
|
targetType: 'STOP'
|
|
targetId: string
|
|
}
|
|
|
|
export const normalizeExplainDetailTargetFromGuideStop = (
|
|
guideStop: Pick<ExplainGuideStop, 'id'>
|
|
): ExplainDetailTarget => ({
|
|
targetType: 'STOP',
|
|
targetId: String(guideStop.id)
|
|
})
|