Skip to content

Instantly share code, notes, and snippets.

async f1 () {
try {
await func();
alert('f1 CALLED');
} catch (e){
console.error(e)
}
}
async f2 () {
@staskuban
staskuban / ts вопросы к собеседованию
Created July 30, 2019 12:23
ts вопросы к собеседованию
1) в каких случаях будет возвращен []?
export interface Interface {
title: string;
data: Array<string>;
id: string;
}
function foo(str:string) {
let arr = JSON.parse(str);
UPDATE: This is a workaround, not a solution
I wouldn't call this a solution, but at least this will get you moving forward again. Follow #349 for a solution. Seems kind of sketchy that we have to disable system protections on macOS to delete a core system file.
How to apply the workaround:
For those looking for a straight forward solution workaround, I was able to resolve this on my machine following the instructions in this thread.
My environment:
OS: macOS High Sierra 10.13.5
Xcode Version: Version 9.4.1 (9F2000)