mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-12-03 18:15:38 +03:00
4e32a73802
At some point in the past, the code splitting of demangle-cpp got broken. This fixes that and also code splits out all fo the different profile importers into their own module since they aren't needed for initial render of the page.
18 lines
661 B
TypeScript
18 lines
661 B
TypeScript
// The bits of this API that we care about. This is implemented by WebKitEntry
|
|
// https://wicg.github.io/entries-api/#api-entry
|
|
export interface FileSystemDirectoryReader {
|
|
readEntries(cb: (entries: FileSystemEntry[]) => void, error: (err: Error) => void): void
|
|
}
|
|
export interface FileSystemEntry {
|
|
readonly isFile: boolean
|
|
readonly isDirectory: boolean
|
|
readonly name: string
|
|
readonly fullPath: string
|
|
}
|
|
export interface FileSystemDirectoryEntry extends FileSystemEntry {
|
|
createReader(): FileSystemDirectoryReader
|
|
}
|
|
export interface FileSystemFileEntry extends FileSystemEntry {
|
|
file(cb: (file: File) => void, errCb: (err: Error) => void): void
|
|
}
|