Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deta/surf
/ detectResourceType
Method
detectResourceType
packages/web-parser/src/sites/article.ts:32–36 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
30
}
31
32
detectResourceType() {
33
console.log(
'Detecting resource type'
, this.url.pathname)
34
35
return
ResourceTypes.ARTICLE
36
}
37
38
isArticle(document: Document) {
39
console.log(
'Detecting resource type'
, this.url.pathname)
Callers
1
getInfo
Method · 0.95
Calls
1
log
Method · 0.80
Tested by
no test coverage detected