CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-tns-platform-declarations

Platform-specific TypeScript declarations for NativeScript for accessing native objects

84

1.23x
Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "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-declarations

tile.json