Platform-specific TypeScript declarations for NativeScript for accessing native objects
84
{
"context": "This evaluation assesses how well the engineer uses the tns-platform-declarations package's Advanced Widget Systems, specifically the async operations APIs for image downloading and file writing. The focus is on proper usage of CompleteCallback, Async.Image.download, and Async.File.writeText functions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CompleteCallback usage",
"description": "Uses org.nativescript.widgets.Async.CompleteCallback constructor to create callback handlers with proper onComplete and onError implementations for async operations",
"max_score": 25
},
{
"name": "Image download API",
"description": "Uses org.nativescript.widgets.Async.Image.download function with correct parameters (url, callback, context) to download images asynchronously",
"max_score": 25
},
{
"name": "File write API",
"description": "Uses org.nativescript.widgets.Async.File.writeText or Async.File.write function with proper parameters (path, content, encoding, callback, context) to save files asynchronously",
"max_score": 20
},
{
"name": "onError callback implementation",
"description": "Properly implements the onError method in CompleteCallback to handle download and file operation failures as specified by the async widget API",
"max_score": 15
},
{
"name": "Multiple async operations",
"description": "Correctly uses multiple CompleteCallback instances to handle concurrent async operations (multiple image downloads and file writes) as required by the widget API pattern",
"max_score": 10
},
{
"name": "Context parameter",
"description": "Uses the context parameter in async operations to track operation state or pass relevant data to callbacks",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-tns-platform-declarationsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10