wix-incubator / corvid-types

Type definitions for Corvid by Wix
MIT License
5 stars 3 forks source link

Bug: in the type "HeadOptions" is missing parameter "title" #18

Closed shoonia closed 4 years ago

shoonia commented 4 years ago

In the type HeadOptions is missing parameter title . HeadOptions

backend/routers.js

import { ok } from 'wix-router';

export function category_Router(request) {
    return ok('category', data, { title: 'Category' });
}

error:

Argument of type '{ title: string; }' is not assignable to parameter of type 'HeadOptions'.
  Type '{ title: string; }' is missing the following properties from type 'HeadOptions': description, keywords, noIndex, metaTags ts(2345)

I'm using

"devDependencies": {
    "corvid-cli": "^0.2.2",
    "corvid-types": "^0.1.90"
  }
agankarin commented 4 years ago

@shoonia thank you! we had resolved this issue