diff --git a/types/index.d.ts b/types/index.d.ts index 84f749e9..632f53e5 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -16,6 +16,7 @@ type SnapshotFunction = ( ) => Promise; export const percySnapshot: SnapshotFunction; +export default SnapshotFunction; declare global { // If QUnit types are present, the actual contents of its diff --git a/types/tests/qunit-test.ts b/types/tests/qunit-test.ts index 4dc0e309..26d4a932 100644 --- a/types/tests/qunit-test.ts +++ b/types/tests/qunit-test.ts @@ -3,7 +3,7 @@ // of the library typechecks and invalid usage produces errors. import { module, test } from 'qunit'; -import { percySnapshot } from '@percy/ember'; +import percySnapshot from '@percy/ember'; module('Type declarations with QUnit', function() { test('snapshot requires at least one param', async function() {