Skip to content

Commit 7f43508

Browse files
committed
fix: useCases.md
1 parent 6ed4802 commit 7f43508

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

docs/useCases.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,20 +1718,15 @@ Returns the File citation in the requested citation export format.
17181718
##### Example call:
17191719

17201720
```typescript
1721-
import {
1722-
FileCitationFormat,
1723-
getFileCitationByFormat
1724-
} from '@iqss/dataverse-client-javascript'
1721+
import { FileCitationFormat, getFileCitationByFormat } from '@iqss/dataverse-client-javascript'
17251722

17261723
/* ... */
17271724

17281725
const fileId = 3
17291726

1730-
getFileCitationByFormat
1731-
.execute(fileId, FileCitationFormat.BIBTEX)
1732-
.then((citationText: string) => {
1733-
/* ... */
1734-
})
1727+
getFileCitationByFormat.execute(fileId, FileCitationFormat.BIBTEX).then((citationText: string) => {
1728+
/* ... */
1729+
})
17351730

17361731
/* ... */
17371732
```

0 commit comments

Comments
 (0)