refresh shims (#2134)

This commit is contained in:
Peli de Halleux
2019-06-05 13:34:07 -07:00
committed by GitHub
parent 180a1942fc
commit c56df20d59
3 changed files with 15 additions and 0 deletions

12
libs/core/shims.d.ts vendored
View File

@ -884,6 +884,18 @@ declare namespace serial {
//% indexerGet=BufferMethods::getByte indexerSet=BufferMethods::setByte
declare interface Buffer {
/**
* Reads an unsigned byte at a particular location
*/
//% shim=BufferMethods::getUint8
getUint8(off: int32): int32;
/**
* Writes an unsigned byte at a particular location
*/
//% shim=BufferMethods::setUint8
setUint8(off: int32, v: int32): void;
/**
* Write a number in specified format in the buffer.
*/