docs: update ts-example types and formatting (#1506)
docs: update ts-example types and formatting (#1506)


open-telemetry/opentelemetry-js,open-telemetry/opentelemetry-js,open-telemetry/opentelemetry-js,open-telemetry/opentelemetry-js