Skip to content

Add a assert method #2

Description

@djyde

用于检验参数完整性:

* offline({ itemId, readyState }) {
  this.assert([ itemId, readyState ]);
}

其中一个如果不存在,则抛出 jsonrpc 的参数错误

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions