Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isChannelSchema(schema: SModelElementSchema): schema is ChannelSchema {
return getBasicType(schema) === 'channel'
}
isProcessorSchema(schema: SModelElementSchema): schema is ProcessorSchema {
return getBasicType(schema) === 'processor'
}
isCoreSchema(schema: SModelElementSchema): schema is CoreSchema {
const basicType = getBasicType(schema)
return basicType === 'core' || basicType === 'simplecore'
}
isHtmlRootSchema(schema: SModelElementSchema): schema is HtmlRootSchema {
return getBasicType(schema) === 'html'
}
isCrossbarSchema(schema: SModelElementSchema): schema is CrossbarSchema {
return getBasicType(schema) === 'crossbar'
}
isPreRenderedSchema(schema: SModelElementSchema): schema is PreRenderedElementSchema {
return getBasicType(schema) === 'pre-rendered'
}
}