Remove type coercion (#4759)

remove type coercion
This commit is contained in:
Kurt Hutten
2024-12-12 09:04:36 +11:00
committed by GitHub
parent b7de8e60cf
commit b127680f2f
2 changed files with 1 additions and 14 deletions

View File

@ -871,15 +871,3 @@ export function codeRefFromRange(range: SourceRange, ast: Program): CodeRef {
pathToNode: getNodePathFromSourceRange(ast, range),
}
}
export function isSolid2D(artifact: Artifact): artifact is solid2D {
return (artifact as solid2D).pathId !== undefined
}
export function isSegment(artifact: Artifact): artifact is SegmentArtifact {
return (artifact as SegmentArtifact).pathId !== undefined
}
export function isSweep(artifact: Artifact): artifact is SweepArtifact {
return (artifact as SweepArtifact).pathId !== undefined
}