fix types & build

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2023-03-30 09:57:20 +04:00
1 parent 2fc1356f60
commit fbb5ad9ebb
4 files changed
+230 -206

No files matched your search

@@ -72,7 +72,7 @@ describe("computeUnixShellEnvironment technical tests", () => {
});
});
di.override(spawnInjectable, () => spawnMock);
di.override(randomUUIDInjectable, () => () => "deadbeef");
di.override(randomUUIDInjectable, () => () => "xxx-xxx-xxx-xxx-xxx");
di.override(processEnvInjectable, () => ({
SOME_ENV_VAR: "some-env-value",
@@ -54,7 +54,7 @@ const sidebarItemsInjectable = getInjectable({
);
const getSidebarItemsHierarchy = (registrations: SidebarItemRegistration[]) => {
const _getSidebarItemsHierarchy = (parentId: string | null): HierarchicalSidebarItem[] =>
const _getSidebarItemsHierarchy = (parentId: string | null): (HierarchicalSidebarItem | any)[] =>
pipeline(
registrations,
@@ -122,7 +122,7 @@ function VirtualListInner<T extends { getId(): string } | string>({
? renderList(fixedHeight)
: (
<AutoSizer disableWidth>
{({ height }) => renderList(height)}
{({ height }) => renderList(height as number)}
</AutoSizer>
)
}