API Reference
Qingkuai's API is organized by entry package so that imports stay explicit and responsibilities remain clear. This article lists the public APIs exported from the source entry files of two packages: the runtime package qingkuai and the compiler package qingkuai/compiler.
qingkuai/internal is mainly intended for framework internals and is generally not recommended for direct use in application code, so it is not covered here.
Runtime
The runtime package exports APIs for component lifecycle hooks, reactive side effects, performance controls, and state conversion.
Type Exports
HtmlBlockOptions
Lifecycle
onAfterMountonBeforeUpdateonAfterUpdateonBeforeDestroyonAfterDestroy
See: Lifecycle
Side Effects and Watchers
watcheffectpreEffectpostEffectsyncEffectpreWatchpostWatchsyncWatch
See: Watchers and Side Effects
Reactive Optimization Controls
noTrackingnoUpdatingpauseTrackingpauseUpdatingresumeTrackingresumeUpdatingbatchUpdatingstopBatchUpdatingstartBatchUpdatingbatchAndNoTracking
State and Scheduling
mountAppnextTicktoRawcreateStoretoReactivetoShallowReactive
Other Exports
DESTRUCT_HTML
Compiler (qingkuai/compiler)
The compiler package is used to parse and compile component source code. It is mainly consumed by build tools, language services, and plugin ecosystems.
Type Exports
ASTLocationASTPositionTemplateNodeCompileOptionsCompileResultStyleDescriptorTextContentPartScriptDescriptorIdentifierStatusTemplateAttributeASTPositionWithFlagTemplateNodeContextCompileIntermediateOptionsCompileIntermediateResult
Constants
SPREAD_TAGPRESERVED_IDPREFIXLANGUAGE_SERVICE_UTILGET_TYPE_DELAY_MARKING
Utility Functions
camel2Kebabkebab2CameltoPropertyKeyfindEndBracketfindOutOfCommentfindOutOfLiteralfindOutOfLiteralCommentisSelfClosingTagisEmbeddedLanguageTagisRequiredValueDirective
Methods and Flags
PositionFlagisCompileErrorisCompileWarningparseComponentTagparseDirectiveValueparseEventFlagparseTemplatecompilecompileIntermediate