mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 17:25:21 +00:00
Applied changes to solve several issues about typescript strict mode
This commit is contained in:
@@ -49,7 +49,9 @@ export default async function getModelFolderContents(
|
||||
.reduce((acc, current) => ({ ...acc, ...current }), {});
|
||||
|
||||
return modelRecords;
|
||||
} catch (err) {
|
||||
} catch (_err) {
|
||||
const err = _err as NodeJS.ErrnoException;
|
||||
|
||||
if (err?.code === "ENOENT") {
|
||||
if (err.syscall === "open") {
|
||||
// file opening failed
|
||||
|
||||
Reference in New Issue
Block a user