feat(flight-finder): implement milestone M1 - domain model and skill contract
This commit is contained in:
22
skills/flight-finder/node_modules/restructure/src/Boolean.js
generated
vendored
Normal file
22
skills/flight-finder/node_modules/restructure/src/Boolean.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import {Base} from './Base.js';
|
||||
|
||||
export class BooleanT extends Base {
|
||||
constructor(type) {
|
||||
super();
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
decode(stream, parent) {
|
||||
return !!this.type.decode(stream, parent);
|
||||
}
|
||||
|
||||
size(val, parent) {
|
||||
return this.type.size(val, parent);
|
||||
}
|
||||
|
||||
encode(stream, val, parent) {
|
||||
return this.type.encode(stream, +val, parent);
|
||||
}
|
||||
}
|
||||
|
||||
export {BooleanT as Boolean};
|
||||
Reference in New Issue
Block a user