Skip to content
On this page
Common

ScriptEntrypoint

top.katton.apicommon/src/main/kotlin/top/katton/api/ScriptEntrypoint.kt
Marks a top-level no-argument function as a client-side script entrypoint.

ClientScriptEntrypoint

ClientScriptEntrypointCommonAnnotation Class
kotlin
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
annotation class ClientScriptEntrypoint

Marks a top-level no-argument function as a client-side script entrypoint.

ServerScriptEntrypoint

ServerScriptEntrypointCommonAnnotation Class
kotlin
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
annotation class ServerScriptEntrypoint

Marks a top-level no-argument function as a server-side script entrypoint.