Skip to content

Commit

Permalink
Update analytics-js.hbs (segmentio#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky authored Apr 27, 2023
1 parent 98c9c89 commit 5e7b3f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/commands/__snapshots__/build.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5176,10 +5176,10 @@ import Ajv, { ErrorObject } from 'ajv'
*
* If you don't want to use the snippet, you can also install the \`@segment/analytics-next\` library as a *production* dependency and use it like this:
* \`\`\`ts
* import { Analytics } from '@segment/analytics-next'
* import { AnalyticsBrowser } from '@segment/analytics-next'
* import { setTypewriterOptions } from './analytics'
*
* const analytics = new Analytics({ writeKey: 'SEGMENT_WRITE_KEY' })
* const analytics = AnalyticsBrowser.load({ writeKey: 'SEGMENT_WRITE_KEY' })
*
* setTypewriterOptions({ analytics: analytics })
*/
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/commands/__snapshots__/production.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -681,10 +681,10 @@ export interface NoIDType {
*
* If you don't want to use the snippet, you can also install the \`@segment/analytics-next\` library as a *production* dependency and use it like this:
* \`\`\`ts
* import { Analytics } from '@segment/analytics-next'
* import { AnalyticsBrowser } from '@segment/analytics-next'
* import { setTypewriterOptions } from './analytics'
*
* const analytics = new Analytics({ writeKey: 'SEGMENT_WRITE_KEY' })
* const analytics = AnalyticsBrowser.load({ writeKey: 'SEGMENT_WRITE_KEY' })
*
* setTypewriterOptions({ analytics: analytics })
*/
Expand Down
4 changes: 2 additions & 2 deletions src/languages/templates/typescript/analytics-js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import Ajv, { ErrorObject } from 'ajv'
*
* If you don't want to use the snippet, you can also install the `@segment/analytics-next` library as a *production* dependency and use it like this:
* ```ts
* import { Analytics } from '@segment/analytics-next'
* import { AnalyticsBrowser } from '@segment/analytics-next'
* import { setTypewriterOptions } from './analytics'
*
* const analytics = new Analytics({ writeKey: 'SEGMENT_WRITE_KEY' })
* const analytics = AnalyticsBrowser.load({ writeKey: 'SEGMENT_WRITE_KEY' })
*
* setTypewriterOptions({ analytics: analytics })
*/
Expand Down

0 comments on commit 5e7b3f4

Please sign in to comment.