Skip to content

Commit 99b0049

Browse files
committed
Merge branch 'master' into puppeteer-playwright-use-cases
2 parents a950785 + 6f86bc3 commit 99b0049

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

content/academy/anti_scraping/mitigation/generating_fingerprints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With the [Fingerprint generator](https://github.com/apify/fingerprint-generator)
1313
> It is crucial to generate fingerprints for the specific browser and operating system being used to trick the protections successfully. For example, if you are trying to overcome protection locally with Firefox on a macOS system, you should generate fingerprints for Firefox and macOS to achieve the best results.
1414
1515
```JavaScript
16-
import FingerprintGenerator from 'fingerprint-generator';
16+
import { FingerprintGenerator } from 'fingerprint-generator';
1717

1818
// Instantiate the fingerprint generator with
1919
// configuration options

content/academy/switching_to_typescript/using_types.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ When hovering over the variable, we see that TypeScript was smart enough to infe
3030

3131
![Type of variable automatically inferred]({{@asset switching_to_typescript/images/number-inference.webp}})
3232

33-
Attempting to reassign `value` to be a type other than a string will result in a compiler error.
33+
Attempting to reassign `value` to be a type other than a number will result in a compiler error.
3434

3535
But what if we want to declare the variable with no initial value, then change it later?
3636

@@ -72,7 +72,8 @@ value = 10;
7272
// Totally ok
7373
value = 'hello academy!';
7474

75-
// This will throw a compiler error
75+
// This will throw a compiler error, because we didn't include
76+
// number arrays in our union type.
7677
value = [1, 2, 3]
7778
```
7879

0 commit comments

Comments
 (0)