"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const bee = {
    role: "guard",
    name: 'Juergen',
    age: 2,
};
const userNames = {
    '652a4707-3043-4ca9-b417-24feac0f5953': 'Bernhard',
    '017daef7-e1f1-4160-81ff-e5b17e86fc6b': 'Frieda',
};
const gameObject = {
    render: () => { },
    update: () => { },
};
function fetch() {
    return Math.random() > 0.5
        ? { msg: 'bla', data: {} }
        : { msg: 'bla', trace: [] };
}
const fetchResult = fetch();
console.log(fetchResult.msg);
if ('trace' in fetchResult) {
    console.log(fetchResult.trace);
}
if ('data' in fetchResult) {
    console.log(fetchResult.data);
}
function inferBroken(str) {
    if (['Bernd', 'Margeret'].includes(str)) {
        const narrowed = str;
    }
}
