SvelteKit adapter that automatically detects deployment environment and installs appropriate platform-specific adapter
Overall
score
96%
{
"context": "This evaluation assesses how effectively the engineer leverages TypeScript type definitions from @sveltejs/kit to create type-safe validation utilities. The focus is on proper usage of the Adapter type, type guards, and compile-time type safety.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Adapter type import",
"description": "Correctly imports the Adapter type from '@sveltejs/kit' using TypeScript import type syntax",
"max_score": 20
},
{
"name": "Type guard implementation",
"description": "Implements isValidAdapter as a proper TypeScript type guard using 'adapter is Adapter' return type predicate",
"max_score": 25
},
{
"name": "Runtime type checking",
"description": "Validates adapter properties (name as string, adapt as function, supports as object) at runtime in isValidAdapter",
"max_score": 20
},
{
"name": "Adapter type usage",
"description": "Uses the Adapter type annotation for the adapter parameter in supportsFeature function",
"max_score": 15
},
{
"name": "Type-safe property access",
"description": "Safely accesses adapter.supports properties with appropriate type checking to avoid runtime errors",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-sveltejs--adapter-autodocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10