This commit is contained in:
Peli 2020-01-06 14:19:55 -08:00
Родитель c306db5478
Коммит 08ce23df9f
3 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -55,6 +55,7 @@
"Buffer.getNumber": "Read a number in specified format from the buffer.",
"Buffer.getUint8": "Reads an unsigned byte at a particular location",
"Buffer.indexOf": "Return position of other buffer in current buffer",
"Buffer.isReadOnly": "Returns false when the buffer can be written to.",
"Buffer.length": "Returns the length of a Buffer object.",
"Buffer.rotate": "Rotate buffer left in place.\n\n\n\nstart. eg: -1",
"Buffer.rotate|param|length": "number of elements in buffer. If negative, length is set as the buffer length minus",

6
libs/core/shims.d.ts поставляемый
Просмотреть файл

@ -950,6 +950,12 @@ declare interface Buffer {
//% shim=BufferMethods::getUint8
getUint8(off: int32): int32;
/**
* Returns false when the buffer can be written to.
*/
//% shim=BufferMethods::isReadOnly
isReadOnly(): boolean;
/**
* Writes an unsigned byte at a particular location
*/

Просмотреть файл

@ -46,7 +46,7 @@
"typescript": "2.6.1"
},
"dependencies": {
"pxt-common-packages": "6.17.1",
"pxt-core": "5.31.2"
"pxt-common-packages": "6.18.2",
"pxt-core": "5.31.8"
}
}