pub fn emit_worker_entry(
context: &str,
layout: &WorkerLayout,
table: &UnitTable,
own_contracts: &BTreeMap<String, String>,
accepted_contracts: &BTreeMap<String, Vec<String>>,
needs_locale_request: bool,
uses_emit: bool,
scheduled_result_hook: bool,
consumed_types: &HashSet<String>,
migratable: &[(String, i64)],
ctx_uses_send: bool,
visible_types: &HashMap<String, Arc<TypeDecl>>,
trace: bool,
inspect: (&[String], bool),
) -> TsProgram