What are possible values if a variable inside an interface is typed as Uint8Array?
typeorm/src/driver/sqljs/SqljsConnectionOptions.ts https://github.com/typeorm/typeorm/blob/master/src/driver/sqljs/SqljsConnectionOptions.ts
/**
* Sql.js-specific connection options.
*/
export interface SqljsConnectionOptions extends BaseConnectionOptions {
/**
* A Uint8Array that gets imported when the connection is opened.
*/
readonly database?: Uint8Array;
}
If already read MDN's article on Uint8Array, but it did not help.
EDIT: As you can see, there is a database name required. Intuitivly I would past in the name of my database, but this is a string. So how does a database in Uint8Array format look like?
Uint8Arraycan have a value ofUint8Array, obviously. E.g.new Uint8Array(10)is a value it could have. What specifically is the problem you are having?